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

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



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