Never, ever, forget a semicolon after the catch block when using Try::Tiny. I just got stuck debugging a little script for more than two hours...


Also, never forget to "use Try::Tiny;"--that will result in many interesting errors, none of which seemingly has anything to do with Try::Tiny.

I'm curious to whether you'd get the same incomprehensible failure mode /without/ the semicolon but /with/ "no indirect;"

Leave a comment

About Alberto Simões

user-pic I blog about Perl. D'uh!