Don't ask to ask, just ask | |
PerlMonks |
Re: better array to hash conversionby Anonymous Monk |
on Dec 11, 2012 at 15:14 UTC ( [id://1008321]=note: print w/replies, xml ) | Need Help?? |
While the hash slice method is the most idiomatic, here's one more variation, based on the OP's code -- just taking out the C-like for loop:
And something that works only after 5.12 but is very easy to read:
In Section
Seekers of Perl Wisdom
|
|