Update:Ignore the rest of this node - as johngg points out, below - this code is equivalent to his assignTo sub.
If you like, you could add what "Anon Monk" implied was possible:
sub Modify_param_array{ print qq{In Modify_param_array - change @_\n}; @_ = qw[New contents. The caller never sees this]; }
"An undefined problem has an infinite number of solutions." - Robert A. Humphrey "If you're not part of the solution, you're part of the precipitate." - Henry J. Tillman
In reply to Re^4: Why does assignment change the result?
by NetWallah
in thread Why does assignment change the result?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |