Perl Monk, Perl Meditation | |
PerlMonks |
Re: hashes - finding valuesby pfaut (Priest) |
on Jul 03, 2003 at 13:34 UTC ( [id://271160]=note: print w/replies, xml ) | Need Help?? |
If you want the value from the hash added to the array, use push @new_array,$hash{$thing}. The code you posted pushes the key, not the value.
In Section
Seekers of Perl Wisdom
|
|