go ahead... be a heretic | |
PerlMonks |
Grep reutrn the occurance of a patternby Anonymous Monk |
on Mar 13, 2008 at 13:41 UTC ( [id://673962]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question: Hi monks, I know how to grep the index of an array for a pattern, but can I have a grep that can give me the index of the pattern, as well as the number of pattern occurance (in any form, not limited to array)? (I think I see something on regex counting the number of occurance of a pattern, but I am not so clear for its syntax...may be somebody can give me some hint?)
Back to
Seekers of Perl Wisdom
|
|