Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

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

by zwon (Monsignor)
on May 20, 2012 at 17:17 UTC ( #971507=note: print w/ replies, xml ) Need Help??


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

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


Comment on Re^3: syntax error near unexpected token `)'
Select or Download Code
Re^4: syntax error near unexpected token `)'
by ikegami (Pope) on May 21, 2012 at 02:24 UTC

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2014-09-19 05:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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











    Results (129 votes), past polls