There's Scope::Upper which provides unwind_at that essentially allows you to perform a return higher up the stack.
You could also try Return::MultiLevel which seems to provide a pretty sane interface for continuations, albeit requiring some co-operation between caller and callee. Also take a look at some of MAUKE's other modules that follow on from that.
In reply to Re: Continuations in Perl - Returning to an arbitrary level up the call stack
by tobyink
in thread Continuations in Perl - Returning to an arbitrary level up the call stack
by unlinker
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |