No such thing as a small change | |
PerlMonks |
Re: keep only unique elements in an array displaying number of duplcates.by GotToBTru (Prior) |
on Jul 28, 2014 at 04:25 UTC ( [id://1095283]=note: print w/replies, xml ) | Need Help?? |
Your code could be more efficient, but examining %seen at the end shows you have the data you want. You just need to display it. keys %hashvariable produces a list of the keys of a hash.
Output:
Or, slightly more 'perlish',
1 Peter 4:10
In Section
Seekers of Perl Wisdom
|
|