while( <> ){ $name{(split/\|/)[0]} += 1; } foreach( keys %name ){ print "$_ = $name{$_}\n"; }
In reply to Re: Counting incidents of names in a file
by Anonymous Monk
in thread Counting incidents of names in a file
by Bishma
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |