If you don't know the keys of a hash, you have to get them somehow. That means using keys, values, or each. There's no other good option. (You could always guess at what a hash contains, but that's not a good option.)
Improve your skills with Modern Perl: the free book.
In reply to Re: Hash of Hashes: Get the next Key without foreach loop
by chromatic
in thread Hash of Hashes: Get the next Key without foreach loop
by snape
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |