http://www.perlmonks.org?node_id=1016125


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.

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