in reply to Re^3: 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

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.
  • Comment on Re^4: Continuations in Perl - Returning to an arbitrary level up the call stack

Replies are listed 'Best First'.
Re^5: Continuations in Perl - Returning to an arbitrary level up the call stack
by LanX (Saint) on May 18, 2013 at 23:27 UTC
    You are citing the POD, but I checked the source...

    Cheers Rolf

    ( addicted to the Perl Programming Language)

      I've checked the source. Such things cannot be implemented with goto. And setjmp()/longjmp() is best explanation found in pod.
      Implementation done using eval EXPR (EXPR is a string) + goto RANDOM_label. Each time you call sub recursively - label is different!