Performance of chained methods.

Jacinta Richardson jarich at perltraining.com.au
Tue Oct 29 22:13:08 CST 2002


> I have a bit of code that looks like this
> 
> 	my $ref =  
> SomeClass->FirstMethod($param1)->AnotherMethod($param2)->MoreMethods();
 
> Or is that a really bad practice?, is there a better way ?, otherwise I  
> have to fall down to the usual practice of one at a time.

You know, if you were to ask these questions on PerlMonks you'd be level 9
by now....  ;)

		Jacinta

--
   ("`-''-/").___..--''"`-._          |  Jacinta Richardson	    |
    `6_ 6  )   `-.  (     ).`-.__.`)  |  Perl Training Australia    |
    (_Y_.)'  ._   )  `._ `. ``-..-'   |      +613 9354 6001 	    |  
  _..`--'_..-_/  /--'_.' ,'           | contact at perltraining.com.au |
(il),-''  (li),'  ((!.-'              |   www.perltraining.com.au   |




More information about the Melbourne-pm mailing list