John M. Dlugosz has asked for the wisdom of the Perl Monks concerning the following question:
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Still slice impared
by davido (Cardinal) on Feb 24, 2004 at 06:22 UTC | |
by John M. Dlugosz (Monsignor) on Feb 24, 2004 at 15:41 UTC | |
by ysth (Canon) on Feb 24, 2004 at 17:25 UTC | |
|
Re: Still slice impared
by Enlil (Parson) on Feb 24, 2004 at 06:35 UTC | |
|
Re: Still slice impared
by revdiablo (Prior) on Feb 24, 2004 at 18:40 UTC |