in reply to Re: Exception clauses
in thread Exception clauses
Discipulus just to add that there exists a finally clause for both modules you mentioned. Here is how to do it with Try::Tiny:
try { try_some_code() } catch { warn "oops: $_" } finally { $x = 'always-executes' };btw, I was bitten many times by forgetting the last colon and getting all sort of misleading error messages. This is not java!
|
|---|