[Catalyst] Re: Detach won't detach?

Jonathan Rockway jon at jrock.us
Tue Jan 27 23:33:46 GMT 2009


* 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).

--
print just => another => perl => hacker => if $,=$"



More information about the Catalyst mailing list