This should (note that the code is untested) give you an array of array references that each contain 50 items (except possibly the last array ref).{ local $/="\t"; my $i = 0; my @arr = (); while ( <FILE> ) { push @{$arr[$i++%50]}, $_; } }
In reply to Re^5: splitting arrays
by RazorbladeBidet
in thread splitting arrays
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |