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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Vowel search
by Noob@Perl (Novice) on Jun 11, 2014 at 20:51 UTC | |
by Jim (Curate) on Jun 11, 2014 at 20:56 UTC | |
by Noob@Perl (Novice) on Jun 11, 2014 at 21:00 UTC | |
by kennethk (Abbot) on Jun 11, 2014 at 21:04 UTC |