my ($a_key) = keys %$myHas; foreach my $l (keys %$myHas) { .... last; } while (my ($a_key) = each %$myHas) { .... last; } keys %$myHas; # Reset iterator.
In reply to Re: how to find a key from a hash
by Perl Mouse
in thread how to find a key from a hash
by jeanluca
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |