Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Escaping single quote in $string

by tangent (Curate)
on Feb 17, 2013 at 21:15 UTC ( #1019216=note: print w/ replies, xml ) Need Help??


in reply to Escaping single quote in $string

To remove the quote the third one you have there should work, as long as you don't do either of the first two beforehand:

my $string = "How It's Made"; $string =~ s/\'//g; print "$string\n"; # prints "How Its Made"


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://1019216]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (8)
As of 2015-07-03 16:03 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 (53 votes), past polls