change
toprint $_ . ': ' . $erg{$_} . '<br />' . "\n" foreach (keys %erg);
my $erg = 0; $erg += $erg{$_} foreach (keys %erg); print $erg,"\n";
regards,
tomte
An intellectual is someone whose mind watches itself.
-- Albert Camus
In reply to Re^5: Unique items in a text file
by Tomte
in thread Unique items in a text file
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |