in reply to newlines for windows from unix

The combination (from Linux) of "\r\n" will produce the results you are looking for when you open a file in Windows.
print "Hello\r\nWorld\r\n";

However, if you are running Perl from Windows, then a simple "\n" will suffice.