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 reply to Re: Re: Argument Passing, preference or performance ?
by seattlejohn
in thread Argument Passing, preference or performance ?
by the_Don
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |