![]() |
|
Just another Perl shrine | |
PerlMonks |
Counting the number of replacesby rsriram (Hermit) |
on Jun 26, 2006 at 09:34 UTC ( #557535=perlquestion: print w/replies, xml ) | Need Help?? |
rsriram has asked for the wisdom of the Perl Monks concerning the following question: Hi, I am replacing a string throughout a markup file $_ =~ s/<I>/<italic>/g; Is there a function/command by which I can count the number of replaces made?
Back to
Seekers of Perl Wisdom
|
|