, - , . , , .
- :
while ($text = <>) {
while ($text =~ /([A-Za-z\-]+)/g) {
my $word = lc($1);
$count++;
$wordCount{$word}++;
}
}
, , . , this_file , [A-Za-z\-_].
:
\W*\s+W* : , , , , , . , , . (, dog, dog ).
grep , . @words, ( ) , . , grep .
, "dog.rose" "fox." , . , , grep.