Tuesday, January 3, 2012

How do you catch an exception in Perl 5?

1. eval (it isn’t pretty).
2. use Try::Tiny (maybe the right choice at this point).

No comments :