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



_______________________________________________
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