Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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


Comment on Re: Escaping single quote in $string
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (12)
As of 2015-07-28 21:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (259 votes), past polls