in reply to Re: Re: Making little array babies
in thread Making little array babies

Well, the direct equivalent* of mine, above, would be:
(* other than scoping issues of $i)

my $i = 0; while ( $i <= $#a ) { push @b, [ @a[ $i .. $i+$n-1 ] ]; } continue { $i += $n; }
Thing I don't like about yours is the incessant multiplication by $n.

jdporter
The 6th Rule of Perl Club is -- There is no Rule #6.