in reply to Re: Duplicate lines with spaces, tabs...
in thread Duplicate lines with spaces, tabs...

1. What does "next unless $_;" do?

It will do the next iteration of the loop (provided the condition is still true) unless $_ is empty. Could also be written as:
if (not $_) { next }
An empty string, zero, or undef, are all false in Perl.