Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: How to find number of unique elemenst in array

by ysth (Canon)
on Nov 27, 2008 at 20:37 UTC ( [id://726481]=note: print w/replies, xml ) Need Help??


in reply to Re: How to find number of unique elemenst in array
in thread How to find number of unique elemenst in array

Counting repeated elements isn't exactly reinventing a wheel. What List modules/functions did you have in mind? (My List::Util::reduce solution was by way of a joke; I hadn't seen your post when I wrote it.)
  • Comment on Re^2: How to find number of unique elemenst in array

Replies are listed 'Best First'.
Re^3: How to find number of unique elemenst in array
by GrandFather (Saint) on Nov 27, 2008 at 20:47 UTC

    Oh ysth! Look at the OP's sig, then look again at my reply. ;)

    Although actually List::Uniq would seem to fit quite well.


    Perl's payment curve coincides with its learning curve.

Log In?
Username:
Password:

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

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

    No recent polls found