in reply to combining lists, formatting and printing on windows

1. Read this: Carrige Return and Line Feed in Perl.
2. Attempt either to print to DOS ^M format like so:

print "hello\r\n", (you can also play with $/ but I do not recommend it)

Or, use dos2unix and unix2dos on your unix machine (hopefully they are installed)

Replies are listed 'Best First'.
Re^2: combining lists, formatting and printing on windows
by marinersk (Priest) on Apr 19, 2015 at 05:11 UTC

    And just an additional note in the interoperability department, I install Cygwin anywhere I am allowed to on the Windows side and ensure those utilities are available on either side of the pipe.

Re^2: combining lists, formatting and printing on windows
by Laurent_R (Canon) on Apr 19, 2015 at 08:31 UTC
    Or, use dos2unix and unix2dos on your unix machine (hopefully they are installed)
    If they are not installed (for example, they don't exist on the AIX platforms used at my workplace), it is possible and easy to create some aliases using Perl oneliners to add or remove the \r character. For example:

    dos2unix:

    perl -pi -e 's/\r//g;' <filename>
    unix2dos:
    perl -pi -e 's/\n/\r\n/g;' <filename>

    Je suis Charlie.