in reply to Entry Integrity

My approach in this case is to take potentially duplicate inputs and make them hash keys, like so:
while ($i = <STDIN>) { chomp $i; if ($i) { $buffer{$i} = 1; } else { last; } }

and then output with

sort keys %buffer.

On systems without case sensitivity of paths you should uc or lc the inputted paths as well.