Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: s/// operator and undef question...

by ismail (Acolyte)
on Dec 13, 2000 at 05:37 UTC ( [id://46366]=note: print w/replies, xml ) Need Help??


in reply to s/// operator and undef question...

I'm sorry, i threw everybody off... the first regex is missing the "/g" from the end, thus:
my $target = 'this is a test of the servise'; for my $is ($target =~ /is/g) { $target =~ s//are/; } print $target\n"; #yields 'thare are a test of the servaree'

sorry about that!

Ismail

Log In?
Username:
Password:

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

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

    No recent polls found