Try this:
&callsub(\%hashtopass); sub callsub { my $hashread = $_[0]; foreach $k (keys $%hashread) { . . . } }
Check this out for more information: http://www.perldoc.com/perl5.6.1/pod/perlref.html
In reply to Re: Passing hashes to subs?
by c0bra
in thread Passing hashes to subs?
by Massyn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |