in reply to keep only unique elements in an array displaying number of duplicates.
Hello john.tm,
If I understand you correctly, you just need to change this line:
$seen{$col_name}++;
to this (replacing the ... with the appropriate “certain string”):
$seen{$col_name}++ if $col_type eq ...;
Then replace the second while loop with:
print " $_\t\t: $seen{$_}\n" for sort keys %seen;
Hope that helps,
| Athanasius <°(((>< contra mundum | Iustus alius egestas vitae, eros Piratica, |
|
|---|