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

[Omaha.pm] blank line here-doc



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
 
 
Cheers,
 
j