Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^3: Catalyst / DBIx::Class - accessing a different table from the modelby Your Mother (Archbishop) |
on Feb 17, 2015 at 17:34 UTC ( [id://1117025]=note: print w/replies, xml ) | Need Help?? |
Well, that was back-of-the-napkining. :P I use Try::Tiny sometimes and I rely on /end handling myself; also newer Perls (5.16+ IIRC) do eval+$@ better so it’s not as important a caveat now and frankly I was never bitten by it in the past. I agree that exception objects can be a good idea, I posted a sample on that not long ago, but it’s not something that lends itself to inclusion in snippets. (Update: 5.14 is where better eval and $@ came in. Not 5.16 as previously suggested.)
In Section
Seekers of Perl Wisdom
|
|