http://www.perlmonks.org?node_id=177826


in reply to Re: General tips for Unix to Windows script migration?
in thread General tips for Unix to Windows script migration?

Define "extra"? DOS/Win32 newlines are different, but when you write something like this:
print "line one\n"; print "line two\n";
You should not get double-spaced output. There shouldn't be any "extra" newlines inserted here.

You may, however, be seeing a trailing newline at the termination of your script. This is added by the Win32 command prompt. Even typing 'rem' will give you an empty line before showing the next prompt.