[Catalyst] The stash and go()

Alexander Tamm alex at frantic.com
Mon Feb 16 09:28:24 GMT 2009


Lars Balker Rasmussen wrote:

> Yes.  Your problem is that auto() needs a return value to say whether
> to go forward with an action or not, so just add "return 1;" at the
> end of auto(), and all will be fine.

...because otherwise auto() implicitly returns the result of the failed 
conditional test "if(! $c->stash->{lang} )"! I see! Thanks! :-)

Alex




More information about the Catalyst mailing list