in reply to Re^3: Printing the length of an array ?
in thread Printing the length of an array ?
That can be wrong for at least one very bad reason that you should be glad you don't know. This code is always correct, shorter, and less noisy:
my $count = @array;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Printing the length of an array ?
by shmem (Chancellor) on Mar 30, 2008 at 22:08 UTC | |
by Not_a_Number (Prior) on Mar 30, 2008 at 22:38 UTC | |
|
Re^5: Printing the length of an array ?
by wardy3 (Scribe) on Mar 31, 2008 at 04:39 UTC |