in reply to Unique array w/o repeated elements and still keep the original order!
Tiagoforeach my $instance (@lines2) { print OUTF $instance unless $hsh{$instance}++; }
Update: replaced 'if' with 'unless'. thanks robobunny
In Section
Seekers of Perl Wisdom