Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

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

by perlancar (Hermit)
on Apr 22, 2019 at 07:41 UTC ( [id://1232860]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1232860]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (9)
As of 2024-04-18 13:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found