in reply to Re^3: Perl::Improved Volume 0, Number 0
in thread Perl::Improved Volume 0, Number 0
as opposed to$a [$J * ($i - 1) + $j]
where $J is the highest second dimensional index. (Which if indices start with 1 happens to be identical to the number of indices).$a [($J + 1) * $i + $j]
If indices start at 1, taking a slice till the end of an array can be written as:
instead of having to write$a [5 .. @a]
or to have to use the $#array form:$a [5 .. @a - 1]
$a [5 .. $#a]
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: Perl::Improved Volume 0, Number 0
by ambrus (Abbot) on Aug 30, 2004 at 17:14 UTC | |
by hardburn (Abbot) on Aug 30, 2004 at 19:13 UTC | |
by Aristotle (Chancellor) on Aug 30, 2004 at 21:08 UTC | |
by ambrus (Abbot) on Aug 30, 2004 at 19:20 UTC | |
by hardburn (Abbot) on Aug 30, 2004 at 19:25 UTC | |
by Roy Johnson (Monsignor) on Aug 30, 2004 at 19:32 UTC |