[Catalyst] $c->forward return stuff

Norbert CSONGRADI - services.hu network bert at services.hu
Wed May 10 09:41:56 CEST 2006


On Wednesday 10 May 2006 07:31, fayland wrote:
> is it a bug?
> my code are as follows:
> Catalyst.pm 1121
>     eval { $c->state( &$code( $class, $c, @{ $c->req->args } ) || 0 ) };
>
> is it a correct return?
>
> ok I know I can set my $error = { }; in the validate sub. but I just
> doubt that why there is a "|| 0" needed.

I had almost the same problem some weeks before, posted a patch to solve it, 
but it did not get applied :(

http://lists.rawmode.org/pipermail/catalyst/2006-April/006592.html

-- 
Regards,
	Norbert Csongrádi



More information about the Catalyst mailing list