How did you move the file? File copy? FTP?

*nix systems use line feeds at the end of lines in text files. Windows
systems use LF\CR. Or the other way round. That's the cause of your problem
anyway.

One way of solving it is to FTP the file to the box in asci mode, I believe.

This might help

http://www.google.com/search?sourceid=navclient&q=Maybe+you+didn%27t+strip+c
arriage+returns+after+a+network+transfer%3F

John

-----Original Message-----
From: Glenn Cannon [mailto:[EMAIL PROTECTED]] 
Sent: 04 April 2002 15:06
To: [EMAIL PROTECTED]
Subject: Strip Carriage Returns


Not strictly a perl question, I know, but...
 
I have been writing and testing my perl script on a WinXP box, and I have
now moved it to its final home on a linux box.  When I run perl -c
scriptname, I get the following:
 
Illegal character \015 (carriage return) at index.pl line 2. (Maybe you
didn't strip carriage returns after a network transfer?)
 
Is there a simple way to prevent/cure this?
 
Glenn


--------------------------Confidentiality--------------------------.
This E-mail is confidential.  It should not be read, copied, disclosed or
used by any person other than the intended recipient.  Unauthorised use,
disclosure or copying by whatever medium is strictly prohibited and may be
unlawful.  If you have received this E-mail in error please contact the
sender immediately and delete the E-mail from your system.



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to