in reply to Continuations in Perl - Returning to an arbitrary level up the call stack
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Continuations in Perl - Returning to an arbitrary level up the call stack
by unlinker (Monk) on May 18, 2013 at 21:30 UTC | |
by LanX (Saint) on May 18, 2013 at 21:36 UTC | |
by vsespb (Chaplain) on May 18, 2013 at 22:47 UTC | |
by LanX (Saint) on May 18, 2013 at 23:27 UTC | |
by vsespb (Chaplain) on May 19, 2013 at 00:00 UTC | |
|