Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re^3: Selective printing of the Duplicates

by choroba (Canon)
on Jan 30, 2013 at 17:45 UTC ( #1016125=note: print w/ replies, xml ) Need Help??

in reply to Re^2: Selective printing of the Duplicates
in thread Selective printing of the Duplicates

If they are duplicates, how do you tell the 1st from the 2nd one?

Anyway, if you use only a part of a line to find the duplicates, it makes sense. You can either reverse the input file and use the old algorithm, or you have to remember the last line seen for each key in a hash. The next problem of the latter is to get the original order of the lines.

لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Comment on Re^3: Selective printing of the Duplicates

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2015-10-09 23:04 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (253 votes), past polls