Think about Loose Coupling | |
PerlMonks |
Re: pushing hash values to an arrayby blazar (Canon) |
on Oct 16, 2006 at 11:51 UTC ( [id://578477]=note: print w/replies, xml ) | Need Help?? |
Since you're under strict this won't even compile.
Ditto! (But I won't insist further.)
Thus is correct.
This is not. Why do you expect $h{$key} to be a scalar reference?
You probably want to print out of the loop. Be careful (also) when preparing test examples. All in all I suspect (but it's hard to tell from your description of the problem) you be in a situation in which you have $href=\%h or the like, and then is the way to go.
In Section
Seekers of Perl Wisdom
|
|