![]() |
|
Perl: the Markov chain saw | |
PerlMonks |
Re^2: reading several lines in a gulp (iterator)by LanX (Sage) |
on May 01, 2011 at 13:06 UTC ( #902333=note: print w/replies, xml ) | Need Help?? |
> I'm sure there are more elegant solutions... indeed, iterators are easier to maintain!
prints
alternative iterator:
Cheers Rolf UPDATE: Handling of edge cases like missing $count parameter could be added to the iterators: $count=1 unless $count; Maybe $count<=0 should be handled differently...
In Section
Seekers of Perl Wisdom
|
|