* [email protected] <[email protected]> [2006-12-18 17:55]: > It might confuse people on first encounter, but no more so than > an empty string heredoc, which I find equally hateful/nice: > > my $sth = $dbh->prepare(<<''); > select foo, bar > from baz > where duh = ? > > $sth->execute(...);
That's hateful for a very different reason: if the "empty" line has any whitespace (eg. inert identation characters introduced while editing), the heredoc extends past the intended point. Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/>
