- or download this
$, = " \n";
- or download this
open (FH, $ARGV[0]) or die ("could not open file");
my @data = <FH>;
- or download this
foreach my $data (@data)
{
...
my $value = $numbers[1];
$myhash{$word} = $myhash{$word} + $value;
}
- or download this
while(my($key, $value) = each %myhash){
print $key . ":" . $value . "\n";
}
- or download this
close (FH);