Perl Monk, Perl Meditation | |
PerlMonks |
Re: Is there a simple syntax to logically slice a hash?by space_monk (Chaplain) |
on Feb 21, 2013 at 15:36 UTC ( [id://1019964]=note: print w/replies, xml ) | Need Help?? |
map perhaps??
You can map one hash to another, but it is probably just as untidy as your example :-) Something like these for the two examples you gave (I haven't got perl on this machine so please send me a private message and I'll fix it if wrong)
A Monk aims to give answers to those who have none, and to learn from those who know more.
In Section
Seekers of Perl Wisdom
|
|