Or if you are just interested to play around with iterators.
Point is that realizing a solution to the example I gave, i.e. to search a huge file with a regex doesn't seem trivial with the module you chose.
The documentation mentions a file iterator but it's operating on record separators not on fixed size chunks.
Hence you'd need to generate a chunk iterator, which masks as a tied "lazy" array.
But do you really need to solve THIS problem?
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
FootballPerl is like chess, only without the dice
In reply to Re: Sliding window revisited: Is it OK to make it so?
by LanX
in thread Sliding window revisited: Is it OK to make it so?
by karlgoethebier
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |