in reply to Notepad: I'm seeing squares.

\r\n should work for Windows. The problem could be in the way you're transferring the file between the two systems.

Replies are listed 'Best First'.
Re^2: Notepad: I'm seeing squares.
by wazzuteke (Hermit) on Nov 23, 2005 at 15:35 UTC
    This is a good point.

    If you are using \r\n and still seeing the squares, here is what I would recommend:

    Create the file, copy it to the Windows box, then transfer the same file back to the *nix environment. Once back in the *nix environment, open it with a simple editor like vi(m) or something similar. In most cases, you will see any wierd control/Windows/Unix characters that might have gotten mixed in while transferring.

    If nothing shows up, I would simply make sure you are using \r\n

    print map{$_.' '}grep{/\w+/}@{[reverse(qw{Perl Code})]} or die while ( 'trying' );
      While that might work, I don't have the liberty of copying the file back and forth between environments. I need to provide the user with a downloadable version of the file that will look as it should (i.e. - no squares).
        I don't think wazzuteke is suggesting you use this as your actual solution, but it might help you diagnose where things are going wrong. How are you transferring files?