[Dbix-class] exception_action fail after DBIC upgrade
Peter Rabbitson
rabbit+dbic at rabbit.us
Tue Jan 22 10:52:22 GMT 2013
On Tue, Jan 22, 2013 at 10:49:18AM +0000, Dave Howorth wrote:
> Peter Rabbitson wrote:
> > Yes, except that it is a flawed assumption that folks check for
> > "truthiness" of $@. In fact any code that does this (if ($@) { ... }) is
> > arguably wrong. The only correct way to check for an exception is (if
> > ($@ eq '') { ... } ) after an eval just took place.
>
> So the official examples are [arguably] wrong then ... ? :)
Arguably yes ;) It is a a mess all the way down \o/
Cheers
More information about the DBIx-Class
mailing list