[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] carriage return problems in scripts



Hi there

How do i remove the carriage returns in perl scripts that have been saved 
as Macperl cgi, but that have unix <cr>
(I get an error:# Illegal character \012 (carriage return).
File 'grosbobo:webstar:calendar:calendar.cgi'; Line 1
# (Maybe you didn't strip carriage returns after a network transfer?)

and sure enough, horrible <cr> at the begining of every line

any suggestions?

The script is on a Mac accessed via VNC (slow connection) from a PC. 
Uploaded using LeechFTP
The script is Matt Kruse's calendar, if anyone fancies trying to get it to 
work for me :) and send a binhexed archive :D

the calendar is at

http://www.mattkruse.com/scripts/calendar/index.html

many thanks

Nicholas Horwood


# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org