in reply to Re: how to find a key from a hash
in thread how to find a key from a hash
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].
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: how to find a key from a hash
by swampyankee (Parson) on Nov 21, 2005 at 16:17 UTC |