- or download this
while (my $text=<$testo>){
for my $key (keys %hash){
...
print $conteggio "$arrkey) => $count\n";
} ;
} ;
- or download this
my $count = () = $text =~ /\b$key\b/ig ;
- or download this
my $count = 0 ; while ($text =~ /\b$key\b/ig) { $count++ ; } ;