Forum Moderators: coopster & phranque
so far im using the long winded
$numofelements = 0; foreach $temp (@array) { $numofelements = $numofelements +1; }
print scalar @array;
or
print "Number of files is: " . @array; # need the string in front to force to scalar
Or, if you want the index of the last element (ie #elements - 1)
print $#array;
Sean