[Omaha.pm] blank line here-doc
Jay Hannah
jhannah at omnihotels.com
Thu Oct 30 14:32:59 PDT 2008
Oh, that's a cute trick. I've never seen a here-doc based on a blank line before. (From Catalyst::Engine::finalize_error().)
$c->res->body( <<"" );
blah1
blah2
blah3
# Trick IE
$c->res->{body} .= ( ' ' x 512 );
More on here-docs:
http://www.devfaq.net/index.php?act=faq&id=620 <http://perl.about.com/od/perltutorials/qt/perlheredoc.htm>
Cheers,
j
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/omaha-pm/attachments/20081030/43573b31/attachment.html>
More information about the Omaha-pm
mailing list