mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
10 lines
118 B
Perl
10 lines
118 B
Perl
|
while (<>) {
|
||
|
for (split(/\W+/)) {
|
||
|
$freq{$_}++;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
for (sort keys %freq) {
|
||
|
print "$_ -- $freq{$_}\n";
|
||
|
}
|