Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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 `)'

Replies are listed 'Best First'.
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 chilling in the Monastery: (6)
As of 2016-06-26 20:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (331 votes). Check out past polls.