Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 perusing the Monastery: (10)
As of 2014-09-19 21:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (147 votes), past polls