Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Basic help with mappingby sk (Curate) |
on Nov 22, 2005 at 04:29 UTC ( [id://510634]=note: print w/replies, xml ) | Need Help?? |
Am i missing something? Your second map logic works fine (modified space to -) if i understand the problem
All dashes (-) are replaced with underscore (_) isn't that what you are trying?
I probably will not use map for this as you are not returning a list back. I would stick with your $_->{'title'} =~ s/-/_/g for(@$AoH_orig); should work just fine (i think) cheers SK
In Section
Seekers of Perl Wisdom
|
|