The example code you showed seems to slide over a fixed array, but when dealing with huge files you need a dynamic approach.
Otherwise you wouldn't get the file into memory.
Unless there is "lazy" magic connected to the array via tie*, but this must be in other parts of the module, which I never used
In short, I'm confused what the question is and how to help.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
FootballPerl is like chess, only without the dice
*) Yep seems so https://metacpan.org/pod/List::Gen#generators
In reply to Re^3: 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: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |