Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Escaping single quote in $string

by manorhce (Beadle)
on Feb 17, 2013 at 21:57 UTC ( #1019223=note: print w/replies, xml ) Need Help??


in reply to Escaping single quote in $string

Hey calebcall I think you have not tried with the last match you have mentioned.

my $string = q/hi it's mine test ' correct/; print $string if $string =~ s#\'#is#g;

Thanks, Mano

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2016-12-10 11:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (162 votes). Check out past polls.