Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: correct usage of q, quotemeta, with s///

by I0 (Priest)
on May 31, 2002 at 00:58 UTC ( #170574=note: print w/replies, xml ) Need Help??


in reply to correct usage of q, quotemeta, with s///

$page =~ s/\Q$old_text\E/$new_code/g;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://170574]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2016-12-03 05:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (52 votes). Check out past polls.