Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: keep only unique elements in an array displaying number of duplicates

by Athanasius (Archbishop)
on Aug 24, 2014 at 16:20 UTC ( [id://1098463]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $seen{$col_name}++;
    
  2. or download this
    $seen{$col_name}++ if $col_type eq ...;
    
  3. or download this
    print "     $_\t\t:  $seen{$_}\n" for sort keys %seen;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1098463]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2024-04-19 19:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found