Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Perl and Shell (Delimiter)

by LanX (Saint)
on Jul 02, 2018 at 14:49 UTC ( [id://1217746]=note: print w/replies, xml ) Need Help??


in reply to Perl and Shell (text conversion)

without trying it out, this looks plain wrong

 $result = '';

because it breaks your evaled string delimiter

perl -e ' ...

maybe try

  $result = q();

instead.

q/STRING/ is an alternative syntax for '' , see perlop#Quote-and-Quote-like-Operators for details

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

update

PS: please note that bash has here-docs too, maybe a more flexible way to safely integrate literal Perl code.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-04-23 16:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found