![]() |
|
Just another Perl shrine | |
PerlMonks |
Re: m// vs grep for counting occurances of a stringby mreece (Friar) |
on Aug 11, 2007 at 05:28 UTC ( #631929=note: print w/replies, xml ) | Need Help?? |
incidentally, if you replace grep with map, you get the behavior you were expecting (a count of 4).
In Section
Seekers of Perl Wisdom
|
|