while ( defined ($line = ) ) { if ($line =~ (/a/i && /e/i && /i/i && /o/i && /u/i)) { print $line; } }