because $hash{$_} is the value of the array element, not the key.my $value = $_;
--
tbone1, YAPS (Yet Another Perl Schlub)
And remember, if he succeeds, so what.
- Chick McGee
In reply to Re: saving the key of a hash
by tbone1
in thread saving the key of a hash
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |