in reply to Re: Remove Duplicate Lines
in thread Remove Duplicate Lines

@out = grep $sd[$_] ne $sd[1+$_], 0 .. $#sd; With inline sort and a perverse twist:
my $prev; @out = grep "$prev" ne ($prev = $_), sort @sd; # not for production co +de

Makeshifts last the longest.