Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Counting the number of replaces

by cognizant (Pilgrim)
on Jun 26, 2006 at 09:38 UTC ( [id://557537]=note: print w/replies, xml ) Need Help??


in reply to Counting the number of replaces

Try this. $a = $b=~s/<i>/<italic>/g; print "$a"; Gives the output you need.

Replies are listed 'Best First'.
Re^2: Counting the number of replaces
by monkey_boy (Priest) on Jun 26, 2006 at 09:42 UTC
    I know this is only a quick example, but in general i would avoid using the special variables $a and $b


    This is not a Signature...

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2024-03-28 11:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found