my @new; my $count = 4; # by this many for (my $i = 0; $i <= $#old; $i++) { $new[$i / $count][$i % $count] = $old[$i]; }
-- Randal L. Schwartz, Perl hacker
In reply to Re: list to LoL
by merlyn
in thread list to LoL
by princepawn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |