[Omaha.pm] q{} is your friend. shell escaping is not :)
Jay Hannah
jay at jays.net
Thu Feb 4 08:57:21 PST 2010
On Feb 4, 2010, at 9:58 AM, Todd Christopher Hamilton wrote:
> I was wondering something though. Which one would you do?:
I do this:
sub goofy_j {
my $sql = <<EOT;
SELECT Foo
FROM Bar
WHERE Foo IS NOT NULL
EOT
return $sql;
}
I guess I like having blocks of stuff that's not Perl in column 1. I think my eye sees "not Perl" faster that way.
EOT instead of EOF cause it's always the end of some Text, not the end of the File. :)
$0.02,
j
More information about the Omaha-pm
mailing list