in reply to Re: Pass by Value does not work
in thread Pass by Value does not work
Not to sound too dense, but doesn't Perl always use "pass by reference," in that changing anything in the $@ array will change its values in the calling routine?
Of course, the language I grew up using always passes by reference, so it usually takes a mental effort to assume any changes in a sub to passed variables don't propagate upstream.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Pass by Value does not work
by almut (Canon) on Feb 21, 2009 at 13:03 UTC | |
by swampyankee (Parson) on Feb 21, 2009 at 15:01 UTC |