On Thu, 2002-04-04 at 09:05, Glenn Cannon wrote:
> 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

perl -ine 's/\015//g;print' filename


or use dos2unix or d2u or ftp it again, but this time make sure it is in
ASCII mode.
-- 
Today is Prickle-Prickle the 21st day of Discord in the YOLD 3168
Keep the Lasagna flying!

Missile Address: 33:48:3.521N  84:23:34.786W


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

Reply via email to