The problem likely occurs when you "upload" (assuming you meant ftp when you said that. Ensure you ftp the file in "ASCII" mode when going from windows to unix or vice versa. This will automatically remove any CR's.
http://en.wikipedia.org/wiki/Newline#Common_problems Jack ________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Rodriguez Sent: Monday, June 25, 2007 2:41 PM To: [EMAIL PROTECTED] Subject: control M's Hi everyone, I wrote a cgi script in PERL which won't execute. I'm told it's because I have control M's at the end of each line, and that this happens when editing programs in Windows (which I do, with Notepad). I found a free program on the web (http://www.scriptarchive.com/scripts/snippets/rm_cont_m.pl) which claims to remove them. I ran it and uploaded the new program, but it still doesn't work. It may be that there's another problem with the script, then again, maybe the control M's are still there. I'd like to rule out the latter. Can anyone advise me on dealing with this? How can I remove them? How can I tell if they're there or not? How can I type up a script so that they never appear in the first place, etc.? Thank you, Chris ________________________________ Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now <http://us.rd.yahoo.com/evt=48223/*http://get.games.yahoo.com/proddesc?gamek ey=monopolyherenow> (it's updated for today's economy) at Yahoo! Games. _______________________________________________ Perl-Win32-Users mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
