in reply to Counting elements in array

You have (at least) a couple of options:

print "Array size is ", scalar(@array), "\n";
- or -
printf "Array size is %d\n", scalar @array;

Your pick. You need to force scalar context, which I explicitly did by using the scalar function.


*My* tenacity goes to eleven...