The print indicates that n=1, and len=6. $self is [1, 2, 3, 4, 5, 6] using BigInt's.my ($self, $n)= @_; my $len= scalar @$self; print " *** n=$n, len=$len\n"; my @left= $self->[0..$n-1]; my @right= $self->[$n..$len-1];
What I want to do is put n items in @left and the remaining items in @right.
—John
In reply to Still slice impared by John M. Dlugosz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |