[prev] [thread] [next] [lurker] [Date index for 2006/12/18]
* tmtm@xxxx.xxx <tmtm@xxxx.xxx> [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/>There's stuff above here
Generated at 22:02 on 27 Dec 2006 by mariachi 0.52