I prefer to use the map function for this type of hash population
map {$fields{$_}++} @fields;
This is not much different than merlyn's; his is probably faster though. I wonder why ...
In reply to Re: Use of grep with arrays/hashes
by DeaconBlues
in thread Use of grep with arrays/hashes
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |