Well, in Perl 6 there are are non-object options, like a LEAVE block that is called on every scope exit, or an UNDO block for unsuccessful scope exists.
I wonder if those are possible (and worthy) to backport to perl 5...
In reply to Re^3: Execute function before exit of do() block
by moritz
in thread Execute function before exit of do() block
by gri6507
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |