Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: I want to write a method that can be used with 'while ($thing = getNextThing() )'

by kroach (Pilgrim)
on Aug 20, 2016 at 10:05 UTC ( #1170118=note: print w/replies, xml ) Need Help??


in reply to I want to write a method that can be used with 'while ($thing = getNextThing() )'

What you need is an iterator. I recommend you read the chapter on iterators in Higher Order Perl.
  • Comment on Re: I want to write a method that can be used with 'while ($thing = getNextThing() )'

Replies are listed 'Best First'.
Re^2: I want to write a method that can be used with 'while ($thing = getNextThing() )'
by Cody Fendant (Friar) on Aug 20, 2016 at 11:51 UTC

    Thanks! I've hacked something together but I'll read it now.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2020-10-23 11:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (238 votes). Check out past polls.

    Notices?