Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Counting the number of replacesby cognizant (Pilgrim) |
on Jun 26, 2006 at 09:38 UTC ( [id://557537]=note: print w/replies, xml ) | Need Help?? |
Try this.
$a = $b=~s/<i>/<italic>/g;
print "$a";
Gives the output you need.
In Section
Seekers of Perl Wisdom
|
|