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

You're missing the closing brace } of the if block, that's all.

Replies are listed 'Best First'.
Re^4: Vowel search
by Noob@Perl (Novice) on Jun 11, 2014 at 21:00 UTC

    closed the bracket and still getting the same error...

      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.