#make hash my %junk = ( one=>'123123', two=>'dsf4f3' ) # send reference &printvals(\%junk); sub printvals { my $junk=$_[0]; #dereference these guys print $$junk{one} . $$junk{two}; }
In reply to Re^2: Passing hashes as arguments to a sub?
by leocharre
in thread Passing hashes as arguments to a sub?
by Spidy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |