Here's a variant of BrowserUks approach:
my @a = (1..30); my @b; my $p = 0; push @b,[ @a[map{$p++}(1..3)] ] while $p < $#a; print map{"@$_\n"}@b;
-- Django
"Why don't we ever challenge the spherical earth theory?"
In reply to Re: perlish mapping a list to triples
by Django
in thread perlish mapping a list to triples
by water
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |