in reply to Re^2: Catalyst / DBIx::Class - accessing a different table from the model
in thread Catalyst / DBIx::Class - accessing a different table from the model
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.)
|
|---|