Next | Program Repair Shop | 192 |
Getting the length of the array:
$n_elements = $#array;
Of course, this is actually wrong; it should have been:
$n_elements = $#array + 1;
But better is:
$n_elements = @array;
continued...
Next | Copyright © 2002 M. J. Dominus |