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?? |
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
updatePS: please note that bash has here-docs too, maybe a more flexible way to safely integrate literal Perl code.
In Section
Seekers of Perl Wisdom
|
|