in reply to Counting matches and removing duplicates
my %counts; while ( my $entity = ... ) { ++$counts{ $entity }; } for my $entity ( sort keys( %counts ) ) { say "$entity $counts{ $entity }"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Counting matches and removing duplicates
by LexPl (Beadle) on Nov 15, 2024 at 13:33 UTC | |
by ikegami (Patriarch) on Nov 15, 2024 at 19:24 UTC |