Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Easier Way?

by Arien (Pilgrim)
on Aug 28, 2002 at 21:46 UTC ( [id://193587]=note: print w/replies, xml ) Need Help??


in reply to Easier Way?

Counting the number of times a value appears in your hash doesn't have to be more complicated than this:

my %hash2; $hash2{$_}++ for values %hash1;

— Arien

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2025-02-07 03:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which URL do you most often use to access this site?












    Results (94 votes). Check out past polls.