Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Notepad: I'm seeing squares.

by Mutant (Priest)
on Nov 23, 2005 at 15:29 UTC ( #511129=note: print w/replies, xml ) Need Help??


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

    ---hA||ta----
    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?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (1)
As of 2021-10-23 02:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (86 votes). Check out past polls.

    Notices?