Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
#!/usr/bin/perl
use strict;
use warnings;
use utf8;
use open qw/:std :utf8/;
my $text = "Как найти слова с двумя гласными?";
my @words = split /\s+/, $text;
my ($count, @result, $tmp_word);
for my $word (@words) {
$tmp_word = $word;
$count = ($word =~ s/[уеёыаоэяию]//g);
push @result, $tmp_word if $count == 2;
}
for (@result) {
print $_, "\n";
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question