Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: finding duplicate data

by gjb (Vicar)
on Jan 21, 2004 at 10:49 UTC ( #322835=note: print w/ replies, xml ) Need Help??

in reply to finding duplicate data

Sounds very much like homework, so I'll just give you a tip: a hash (e.g. %data) would come in handy. You can use the data (A(01), B(02), etc) as keys and the number of times you encounter the data as values.

would do the trick.

As a final step, you iterate over the keys (the function keys is useful here) in the hash and print those keys that have values larger than 1.

Hope this helps, -gjb-

Comment on Re: finding duplicate data
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (13)
As of 2015-10-06 16:50 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (155 votes), past polls