Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re^2: Notepad: I'm seeing squares.

by wazzuteke (Hermit)
on Nov 23, 2005 at 15:35 UTC ( #511132=note: print w/replies, xml ) Need Help??

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.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://511132]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (1)
As of 2021-10-23 17:35 GMT
Find Nodes?
    Voting Booth?
    My first memorable Perl project was:

    Results (88 votes). Check out past polls.