in reply to Vowel search

Your code is asking for files that have an a AND an e AND an i AND an o AND a u. What you probably want is

if ($file =~ /[aeiou]{2}/) { print $file; }

[aeiou] matches any one of those letters and {2} specifies that it should match two in a row.

1 Peter 4:10

Replies are listed 'Best First'.
Re^2: Vowel search
by Noob@Perl (Novice) on Jun 11, 2014 at 20:51 UTC
    I switched what you suggested though I'm still getting an error, error stated on the edited parent post

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

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