Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Converting array of hash references to hashby rpnoble419 (Pilgrim) |
on Apr 22, 2013 at 16:54 UTC ( [id://1029926]=note: print w/replies, xml ) | Need Help?? |
Why do the conversion in the first place. If the data is consistent, write your program to loop through the array. It might be helpful to look at this tread Map Vs Foreach. I'm not against using map, but if the list is very long you may run into other problems. UPDATE: you may want to check out this module to see if does what you want Hash-MostUtils
In Section
Seekers of Perl Wisdom
|
|