in reply to Re^3: to avoid redundacy in a file
in thread to avoid redundacy in a file

I was going to condense it down to a single line:
% perl -ne '$p ne$_&&print;$p=$_' ...