![]() |
|
Keep It Simple, Stupid | |
PerlMonks |
Re: Return a list or an iteratorby dpuu (Chaplain) |
on Apr 17, 2006 at 17:16 UTC ( #543876=note: print w/replies, xml ) | Need Help?? |
You may be interested in Damian's talk, "Sufficiently Advanced Technologies", podcast at http://yapc.g.hatena.ne.jp/jkondo/. 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.
--Dave Opinions my own; statements of fact may be in error.
In Section
Meditations
|
|