Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: Return a list or an iterator

by dpuu (Chaplain)
on Apr 17, 2006 at 17:16 UTC ( #543876=note: print w/ replies, xml ) Need Help??

in reply to Return a list or an iterator

You may be interested in Damian's talk, "Sufficiently Advanced Technologies", podcast at He mentions some refinements on this technique, such as returning an object with boolean overloads so that while ($iter) {...} will correctly set $_ on each iteration.

Opinions my own; statements of fact may be in error.

Comment on Re: Return a list or an iterator
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2015-11-28 05:43 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (738 votes), past polls