A hash in list context returns just all pairs, so
(undef, $value) = %hash
will do!
The undef syntax just ignores the key if you really don't need it.
Regarding your code .... Sorry tl;dr, please keep it short next time!
HTH! :)
Cheers Rolf
(addicted to the Perl Programming Language)
In reply to Re: Can I avoid loops getting the single value from a hash without knowing the key?
by LanX
in thread Can I avoid loops getting the single value from a hash without knowing the key?
by anadem
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |