No such thing as a small change | |
PerlMonks |
Re^2: Passing Hashesby TheEnigma (Pilgrim) |
on Oct 24, 2004 at 00:51 UTC ( [id://401931]=note: print w/replies, xml ) | Need Help?? |
$dat contains a reference to the hash called %tmp, because that's what you returned from gather when you (correctly) said return \%tmp;. So you need to dereference it when you use it. To dereference $dat as a hash, you would say foreach(keys %$dat).
TheEnigma
In Section
Seekers of Perl Wisdom
|
|