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

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



I agree. I use q{} often.  qq{} will do interpolation

On 2/3/2010 4:22 PM, Jay Hannah wrote:
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



_______________________________________________
Omaha-pm mailing list
Omaha-pm@pm.org
http://mail.pm.org/mailman/listinfo/omaha-pm

--
Todd Hamilton
(402) 881-0438