in reply to Word frequency in an array

If you have multiple accesses, build a hash:
my %f;
for (@array) {
    $f{$_}++;
}
That doesn't work if you are interested in substrings or array elements.