wouldn'tHow could something that doesn't even have a remote chance of compiling be "perfectly adequate"?be perfectly adequate?$key = shift(keys(%hash));
shift, but it's nature, must have an lvalue as its argument, and to be more precise, an lvalue that starts with an @. List context keys() is neither. shift isn't an alternative for [0].
In reply to Re^2: 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: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |