I'm trying to search in an array for characters other than letters. I've done this kind of operation in other languages, but PERL is new to me. Below is my code.
open INFILE, 'test.txt' or die "File Not Found
$count = 0;
for ($i = 0; $i < length(@array)
Textfile 'test.txt is as follows:
This is a test.
How about those Mets.
This is neat and cool.
Spontaneous combustion is cool.
My output is: 1
The array only has one value, which is the text file, istead of the text file's individual characters.
and so on . . .