in reply to Re: Continuations in Perl - Returning to an arbitrary level up the call stack (goto)
in thread Continuations in Perl - Returning to an arbitrary level up the call stack

Unfortunately, the functions up the call stack are modules that I dont control. These modules call my function and I dont want to return to the calling module but one level higher up the stack.

Thanks for the suggestion though. I am currently looking at Continuation::Escape for a possible solution

  • Comment on Re^2: Continuations in Perl - Returning to an arbitrary level up the call stack

Replies are listed 'Best First'.
Re^3: Continuations in Perl - Returning to an arbitrary level up the call stack
by LanX (Saint) on May 18, 2013 at 20:56 UTC
    > I dont want to return to the calling module but one level higher up the stack.

    Thats where you have to place the target label.

    Anyway I doubt that your approach is reasonable, sorry! Maybe a XY problem?

    Cheers Rolf

    ( addicted to the Perl Programming Language)