use Data::Dumper; open FH,"DATA.txt" or die $!; my %hash; my ($a,$b); while(<FH>) { ($a,$b)=split(' '); $hash{$a}+=$b; } print Dumper \%hash;
In reply to Re^2: Count ID values
by kiruthika.bkite
in thread Count ID values
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |