[Catalyst] forward returns 0 to caller when called action returns undef

Matt S Trout dbix-class at trout.me.uk
Wed Apr 12 17:14:35 CEST 2006

Yuval Kogman wrote:
> On Wed, Apr 12, 2006 at 12:38:45 +0200, Norbert CSONGRADI - services.hu network wrote:
>> Hi,
>> I have a problem with forward return value when the called action wants to 
>> return undef value.
> Yeah, I just complained about that while refactoring the dispatcher.
> It's sri's call, I guess.

I suspect it's because the return sets $c->state which is numerically compared 
somewhere, which resulted in a warning.

Fixing the numeric compare and letting $c->state be undef would work for me.

      Matt S Trout       Offering custom development, consultancy and support
   Technical Director    contracts for Catalyst, DBIx::Class and BAST. Contact
Shadowcat Systems Ltd.  mst (at) shadowcatsystems.co.uk for more information

+ Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +

More information about the Catalyst mailing list