Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^5: Loop through array or filehandle

by Laurent_R (Canon)
on Sep 30, 2016 at 11:48 UTC ( [id://1172990]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Loop through array or filehandle
in thread Loop through array or filehandle

The call to create_iter should not be in the while loop, create_iter should be called only once, to obtain the right iterator.

What should go into the while condition is the call to the iterator returned by create_iter (i.e. $iter->() in my sample code).

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2024-04-19 15:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found