![]() |
|
No such thing as a small change | |
PerlMonks |
Re^2: Why does 'keys' need a named hash?by vrk (Chaplain) |
on May 22, 2017 at 08:45 UTC ( #1190845=note: print w/replies, xml ) | Need Help?? |
I just noticed there are functions for this in List::Util: pairkeys and pairvalues. For example:
The obvious difference to keys and values of a hash is that pairkeys doesn't remove duplicates and it keeps the original array order.
In Section
Seekers of Perl Wisdom
|
|