in reply to Re: Getting for() to accept a tied array in one statement
in thread Getting for() to accept a tied array in one statement

What if the loop is left by last , next , redo , return or goto ?

Nice catch. In the Python library, this must be handled explicitly by "closing" the iterator.

  • Comment on Re^2: Getting for() to accept a tied array in one statement

Replies are listed 'Best First'.
Re^3: Getting for() to accept a tied array in one statement
by LanX (Saint) on Apr 22, 2019 at 09:49 UTC
    > In the Python library, this must be handled explicitly

    LOL...

    well hooking into DESTROY should handle this implicitly.

    BTW: I forgot to list die and exception handling.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery FootballPerl is like chess, only without the dice