![]() |
|
Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^3: Changing local variables in subroutine by passing by reference?by moritz (Cardinal) |
on Feb 29, 2008 at 10:49 UTC ( #671143=note: print w/replies, xml ) | Need Help?? |
My second example didn't uses references at all! That's the differences.
Note that normally your subs are built like this:
The assignment to another variable breaks the alias, so if you change $arg1, @_ will not be modified. But if you modify @_ directly,
In Section
Seekers of Perl Wisdom
|
|