[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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