RosettaCodeData/Task/I-before-E-except-after-C/Perl/i-before-e-except-after-c-2.pl
Ingy döt Net 776bba907c Sync
2013-10-27 22:24:23 +00:00

8 lines
190 B
Raku

while (<>) {
my @columns = split;
next if 3 < @columns;
my ($word, $freq) = @columns[0, 2];
for my $k (@keys) {
$count{$k} += $freq if -1 != index $word, $k;
}
}