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

Thanks! Return::MultiLevel is exactly what I was looking for.
  • 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 21:36 UTC
    > Thanks! Return::MultiLevel is exactly what I was looking for.

    Of course, it uses goto under the hood, just hidden behind massive abstraction and overhead ... 8-|

    Cheers Rolf

    ( addicted to the Perl Programming Language)

    ¹) Unfortunately there is no emoticon for shaking the head and sighing...

      No, I understand that goto won't work with recursion like Return::MultiLevel.
      It's more like setjmp()/longjmp() and implemented using eval EXPR and goto.
        You are citing the POD, but I checked the source...

        Cheers Rolf

        ( addicted to the Perl Programming Language)