in reply to Re: Argument Passing, preference or performance ?
in thread Argument Passing, preference or performance ?
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';
|
|---|