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 meditating upon the Monastery: (2)
As of 2017-02-20 07:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (294 votes). Check out past polls.