|
|
| Pathologically Eclectic Rubbish Lister | |
| PerlMonks |
Re: finding duplicate databy gjb (Vicar) |
| on Jan 21, 2004 at 05:49 UTC ( [id://322835]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
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-
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||