Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Counting the number of replaces

by pingo (Hermit)
on Jun 26, 2006 at 10:11 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://557548]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (6)
As of 2024-04-18 09:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found