Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

I must be going *insane*!

by Kozz (Friar)
on May 23, 2000 at 20:24 UTC ( #14400=note: print w/ replies, xml ) Need Help??


in reply to Debugging: What's going on here?

I used a carriage-return-stripping script on this "Hello, World" script, and then there were no errors. But I'm editing it in VI (well, VIM), and usually these pesky characters show up as ^M. But they weren't visible. How strange. I feel sooo foolish, though. Why couldn't I see those darn \r's?


Comment on I must be going *insane*!
Replies are listed 'Best First'.
RE: I must be going *insane*!
by ZZamboni (Curate) on May 23, 2000 at 21:33 UTC
    vim automatically recognizes DOS-style end-of-lines and treates them correctly. To force it to use unix-style EOLs, set the "filetype" variable to "unix":
    :set ff=unix
    Then write the file. It will write it in Unix format. If you set ff=unix before loading a file, it should show the \r's as ^M.

    --ZZamboni

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (9)
As of 2015-07-28 15:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (257 votes), past polls