Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Counting the number of replaces

by pingo (Hermit)
on Jun 26, 2006 at 06:11 UTC ( #557548=note: print w/replies, xml ) Need Help??


in reply to Counting the number of replaces

In the spirit of TIMTOWTDI:
s/<I>/$count++;"<italic>"/eg; print $count || 0;
No, I didn't say it was pretty. ;-)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://557548]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2020-12-05 12:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you use taint mode?





    Results (63 votes). Check out past polls.

    Notices?