in reply to Re^2: Printing the length of an array ?
in thread Printing the length of an array ?
Better, and clearer, to write for line 7:
my $count = $#array; print "number of elements is " . ++$count . "\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Printing the length of an array ?
by chromatic (Archbishop) on Mar 30, 2008 at 21:57 UTC | |
by shmem (Chancellor) on Mar 30, 2008 at 22:08 UTC | |
by Not_a_Number (Prior) on Mar 30, 2008 at 22:38 UTC | |
by wardy3 (Scribe) on Mar 31, 2008 at 04:39 UTC |