Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Counting the number of replaces

by cognizant (Pilgrim)
on Jun 26, 2006 at 09:38 UTC ( #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? | Other CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2021-07-24 08:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?