my %counts; while ( my $entity = ... ) { ++$counts{ $entity }; } for my $entity ( sort keys( %counts ) ) { say "$entity $counts{ $entity }"; }
In reply to Re: Counting matches and removing duplicates
by ikegami
in thread Counting matches and removing duplicates
by LexPl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |