in reply to Re: Notepad: I'm seeing squares.
in thread Notepad: I'm seeing squares.

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' );

Replies are listed 'Best First'.
Re^3: Notepad: I'm seeing squares.
by emilford (Friar) on Nov 23, 2005 at 15:50 UTC
    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?
        I'm creating and storing the files on a Unix file server. Then on the windows side, a browser is being pointed at the file. It opens up in the browser. File->Save Page As. Done.