sub myroutine { $hash_ref = (shift); $$hash_ref{foo}='bar'; } myroutine(\%thishash);
die "Not a HASH reference" unless (ref($hash_ref) eq "HASH");
In reply to Re: passing hashes and hash reference
by twerq
in thread passing hashes and hash reference
by symŽ
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |