[Catalyst] problem on $c->res->body(*STDOUT);
Matt Lawrence
matt.lawrence at ymogen.net
Fri Mar 14 09:57:06 GMT 2008
Fayland Lam wrote:
> sub test_body : Local {
> my ($self, $c) = @_;
>
> $c->res->body(*STDOUT);
> print "a\n";
> print "b\n";
> }
>
Have you tried passing the glob as a reference?
$c->res->body(\*STDOUT);
It looks like that's at least part of your problem. I suspect that using
filehandles in this way is not going to work as you expect and may have
engine-specific problems, have you considered using $c->res->write as a
substitute for print?
Matt
More information about the Catalyst
mailing list