Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: finding duplicate data

by l3nz (Friar)
on Jan 21, 2004 at 12:39 UTC ( [id://322858]=note: print w/replies, xml ) Need Help??


in reply to finding duplicate data

This is an one-liner. As you can see, you can check the threshold value for items to show up by tuning the constant. Hope this helps.

map { print $_ if ( $h{$_}++ == 1) } <DATA>; __DATA__ A(01) A(01) A(01) B(02) C(03) A(01) D(04) E(05) ...
One-liners are definitely funny.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2024-04-26 08:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found