Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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 the questions are moot...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2018-06-22 02:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (120 votes). Check out past polls.

    Notices?