use strict; use warnings; open my $inFH, q{<}, \ < ) { print qq{$.: $_} if m{([aeiou])\1}; } close $inFH or die qq{close: $!\n};