Just incase you don't know, and incase anyone else on the list wants to know, with VI, 
it is easy to remove those control characters.  

        :g/ctrl V ctrl M/s///g

The control V and control M will set up the ^M control to the :g which is the global 
replace command.  :)

Jason Fay

On a tangentially related note I learned (yesterday at about noon) that I
would
have to have our product ready for a customer demo today at noon. And that
the
documentation I'd been doing would have to wait. That afternoon I ran the
product
through its paces and got cryptic "Can't open file" messages in the error
log.
Turns out that the documentation template I was using had been done on
Windows
while the program resided on a Linux box.

To the normal editor and print out it looked like this:

#!/usr/local/bin/perl

##### BLAH BLAH BLAH
##### REALLY OBSCURE COMMENT
##### BLAH BLAH BLAH

It was only when I looked at it with VIM some hours later
that the error jumped out:

#!/usr/local/bin/perl^M
^M
##### BLAH BLAH BLAH ^M

on the nonworking ones and

#!/usr/local/bin/perl
^M
##### BLAh BLAH BLAH

on the working ones.

Hope this saves one of you some gray hairs some day.

Todd

_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to