--- Ron Woodall <[EMAIL PROTECTED]> wrote:
> Hi All:
>
> Maxim wrote:
>
> >If you use FTP to transfer file between windows and linux, switch your
> >ftp client to 'ascii' mode.
> >If not, tell your editor to save output file in unix format.
>
> I store the file directly to the Linux machine and tried setting
> the editor to save in unix format. No resolution. I haven't tried FTP yet
> but that might be worth it when I get to the production end of the run. Any
> other solutions? I'm using NoteTab Light 4.85 (Freeware version) by Eric
> G.V. Fookes.
>
> Thanks but no cigar yet ;-)
>
> Ron Woodall
Just had this problem. To solve:
cat -vE somescript.pl
That will show non-printing characters (-v) and the end of line will be indicated with
a dollar
sign (-E). If you see a ^M before the end of line, you have saved the file in DOS
mode. To fix
it, use an inplace edit:
perl -pi -e 's/\r//g' somescript.pl
Just be sure to back up the file first!
Cheers,
Curtis "Ovid" Poe
=====
Senior Programmer
Onsite! Technology (http://www.onsitetech.com/)
"Ovid" on http://www.perlmonks.org/
__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]