in reply to Entry Integrity
while ($i = <STDIN>) { chomp $i; if ($i) { $buffer{$i} = 1; } else { last; } } [download]
and then output with
sort keys %buffer.
On systems without case sensitivity of paths you should uc or lc the inputted paths as well.