You will need to look at each array entry, count the fields in it, add them to your total and so on and so forth.
$count = 0 ;
foreach my $entry(@array){
# use your word count algorithm here
# add total to $count
}
print "Total words in array is: $count\n" ;
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.