Here is an example of using prototypes to force a pass-by-reference.
sub foo(\%\@) { my ($hash_ref, $array_ref) = @_; #... } foo (%hash, @array);
In reply to Re: How Do I pass a hash to a subroutine?
by Doraemon
in thread How Do I pass a hash to a subroutine?
by filmo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |