[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cgiapp] Exception handling in C::A modules


On Tue, Sep 16, 2003 at 06:20:10PM +0100, Steve Hay wrote:
}    if (ref($rmeth) eq 'CODE') {
...
}        die "Error executing run mode '$rm': $@" if $@ and ref($meth) eq 
} 'CODE';

I don't normally look at C::A internals but this stood out - instead
of a ref($meth) eq 'CODE', it'd be nicer to say isa($meth,'CODE') so
that the C::A user isn't restricted to unblessed code references.

Joshua Jore

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.