This makes the code much more readable. =)
Otherwise I'm not sure where you want the processing logic to happen in your code, maybe something like unless ($. % $size) { ...} within the loop?
I think If a sliding window is needed, shift and push might be better.
Cheers Rolf
( addicted to the Perl Programming Language)
In reply to Re^3: how to read multiple line from a file
by LanX
in thread how to read multiple line from a file
by skyworld_chen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |