So finally blocks aren't in fact good ways to make sure cleanup gets performed? That's kind of advertised as their main purpose -- but DBIx, for example, reports most errors with exceptions (and I like that style in general).
Re^4: Die inside Try::Tiny blocks
Replies are listed 'Best First'.
So finally blocks aren't in fact good ways to make sure cleanup gets performed?
They are, but you're talking about nesting code which may throw exceptions in the finally blocks of exception handlers. How are you going to handle those exceptions? Do they have their own finally blocks? This gets complicated pretty fast.