* On Tue, Jan 27 2009, [email protected] 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 $,=$" _______________________________________________ List: [email protected] Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[email protected]/ Dev site: http://dev.catalyst.perl.org/
