in reply to Re^4: Vowel search
in thread Vowel search

foreach $file(@lines);
is an invalid statement. See Foreach Loops in perlsyn. You likely mean
foreach $file(@lines) { ... }

#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.