Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: syntax error near unexpected token `)'

by vit (Pilgrim)
on May 20, 2012 at 17:05 UTC ( #971501=note: print w/ replies, xml ) Need Help??


in reply to Re: syntax error near unexpected token `)'
in thread syntax error near unexpected token `)'

Then how to handle a single quote match?


Comment on Re^2: syntax error near unexpected token `)'
Re^3: syntax error near unexpected token `)'
by zwon (Monsignor) on May 20, 2012 at 17:17 UTC
    This sounds more like a bash question to me, but you can replace single quotes with \N{APOSTROPHE} or \x27. In bash you can do it like this:
    $ echo 'aa'"'"'bb'; aa'bb

      Alternatively and one shorter: Change ' to '\''.

      $ echo 'aa'\''bb'; aa'bb

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (13)
As of 2015-07-07 13:26 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 (88 votes), past polls