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


_______________________________________________
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
Searchable Archive: http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk

Reply via email to