[Catalyst] Re: Detach won't detach?

Andrew Rodland arodland at comcast.net
Wed Jan 28 00:01:23 GMT 2009


On Tuesday 27 January 2009 05:33:46 pm Jonathan Rockway wrote:
> * On Tue, Jan 27 2009, pie3142 at comcast.net wrote:
> > Why not
> >
> > sub auto :Private {
> >         my $c = pop;
> >         return user_logged_in || $c->res->redirect( ... );
> >     }
>
> Because now the correctness of your application depends on undocumented
> behavior (the return value of $c->res->redirect).

|| 0 doesn't fix that any. Did you want && 0? :)

Andrew



More information about the Catalyst mailing list