Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Using map to split an array to hash key/valuesby jsegal (Friar) |
on Dec 18, 2001 at 02:44 UTC ( [id://132706]=note: print w/replies, xml ) | Need Help?? |
how about
Map evaluates in array context, and if the block in the map clause returns an array (like split does), the elements will be interpolated. This then gets interpreted as a hash. Best of luck.... -Jonathan
In Section
Seekers of Perl Wisdom
|
|