[Dbix-class] exception_action fail after DBIC upgrade
Dave Howorth
dhoworth at mrc-lmb.cam.ac.uk
Tue Jan 22 10:49:18 GMT 2013
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 ... ? :)
http://perldoc.perl.org/functions/eval.html
More information about the DBIx-Class
mailing list