in reply to passing hashes and hash reference
sub myroutine { $hash_ref = (shift); $$hash_ref{foo}='bar'; } myroutine(\%thishash);
die "Not a HASH reference" unless (ref($hash_ref) eq "HASH");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re: passing hashes and hash reference
by tye (Sage) on Apr 20, 2001 at 21:19 UTC | |
by BMaximus (Chaplain) on Apr 20, 2001 at 21:35 UTC | |
by tadman (Prior) on Apr 20, 2001 at 21:56 UTC | |
by tye (Sage) on Apr 20, 2001 at 22:00 UTC |