[Catalyst] The stash and go()

Lars Balker Rasmussen lars at balker.dk
Mon Feb 16 09:02:55 GMT 2009


On Mon, Feb 16, 2009 at 9:18 AM, Alexander Tamm <alex at frantic.com> wrote:
> I'm experiencing a little bit of weirdness with the stash when using go().
> I'd like to make sure I'm not making false assumptions. Is the called action
> supposed to see the same context and/or stash as the the calling action?

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.
-- 
Lars Balker Rasmussen                                        Consult::Perl



More information about the Catalyst mailing list