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

Todd Christopher Hamilton netarttodd at gmail.com
Wed Feb 3 14:38:44 PST 2010


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 at pm.org
> http://mail.pm.org/mailman/listinfo/omaha-pm

-- 
Todd Hamilton
(402) 881-0438


More information about the Omaha-pm mailing list