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.
| 90% of every Perl application is already written. ⇒ |
| dragonchild |
In reply to Re: hashes - finding values
by pfaut
in thread hashes - finding values
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |