Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: How to escape single quote(s) without the use of quotemeta

by LanX (Cardinal)
on Apr 05, 2019 at 18:58 UTC ( #1232207=note: print w/replies, xml ) Need Help??


in reply to Re: How to escape single quote(s) without the use of quotemeta
in thread How to escape single quote(s) without the use of quotemeta

I agree, but I'm expecting it only to reflect the escaping rules inside a single quote.

Inside single quotes it's only possible to escape another single quote and backslash.

(This rule varies of course if you use q() with differing boundary characters.)

Using Data::Dumper should be sufficient here, otherwise the OP should show us where it fails.

We can't know which interface he is using, probably he's shelling out ... in this case it's most probably a XY problem.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

  • Comment on Re^2: How to escape single quote(s) without the use of quotemeta

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2021-06-23 04:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)












    Results (113 votes). Check out past polls.

    Notices?