perl_preserving_indents_in_heredocs

This is part of The Pile, a partial archive of some open source mailing lists and newsgroups.



Subject: Re: best way of Passing CGI parameters to a SQL querry
From: "Phil R Lawrence" <prlawrence@lehigh.edu>
Date: Thu, 10 Aug 2000 16:56:09 -0400

I too much prefer using qq instead of heredoc because of line
> ## indentation
I didn't like heredocs either because of the dumb TOKEN that had to break my
beautiful indentations.  Then I saw someone do this:
    my $sql = <<"";


Then all you need is a blank line after your SQL statement and your
indentations remain unmolested.
{
    {
        {
            my $sql = <<'';
                SELECT foo
                  FROM bar

        }
    }
}


===


the rest of The Pile (a partial mailing list archive)

doom@kzsu.stanford.edu