Alternative non-destructive approach:
my $vidis_ = sub { \@_ }->(@vidis); while (my @section = splice @$vidis_, 0, 50) { ... }
None of the elements are copied, so this is quite efficient.
In reply to Re^2: Next 50 array elements during each loop?
by ikegami
in thread Next 50 array elements during each loop?
by Bman70
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |