"be consistent" | |
PerlMonks |
Re: Re: Argument Passing, preference or performance ?by seattlejohn (Deacon) |
on Nov 12, 2002 at 03:58 UTC ( [id://212190]=note: print w/replies, xml ) | Need Help?? |
Logically they are the same
Unfortunately not. routine1 makes the assignment without modifying @_, whereas routine2 consumes elements of @_. Add something like return $_[0]; to each of the above and in general you will get different results... $perlmonks{seattlejohn} = 'John Clyman';
In Section
Seekers of Perl Wisdom
|
|