[Omaha.pm] q{} is your friend. shell escaping is not :)

Jay Hannah jhannah at omnihotels.com
Wed Feb 3 14:22:00 PST 2010


These do the same thing. But the bottom is more readable, I think.
Thanks q{}!  

 

my $cmd = "ssh -l bkgndrun $server " . 'perl -e \\\'print join \" \",
@INC\\\'';

 

my $cmd = "ssh -l bkgndrun $server " . q{perl -e \'print join \" \",
@INC\'};

 

perldoc perlop   

   Quote and Quote-like Operators

 

j

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/omaha-pm/attachments/20100203/00104aa7/attachment.html>


More information about the Omaha-pm mailing list