Keep It Simple, Stupid | |
PerlMonks |
Re: Working on hash sliceby AnomalousMonk (Archbishop) |
on Mar 12, 2019 at 23:34 UTC ( [id://1231186]=note: print w/replies, xml ) | Need Help?? |
I agree that the method hippo shows here is best, but another (also non-destructive) way to initialize a hash at declaration from a pair of arrays (of equal size) is: (Assumes initializing arrays are of equal size!) See List::MoreUtils::zip(). Give a man a fish: <%-{-{-{-<
In Section
Seekers of Perl Wisdom
|
|