note
nikosv
In cases like that it is best to use an iterator so you get one item back at a time and not fill memory at once with all the items.In other languages (like in C#) this happens by using 'yield' typically with a foreach loop,while in Perl the concept is explained in MJ Dominus's <a href="http://hop.perl.plover.com/#toc">HOP book</a>
956984
956984