Thanks everyone for the overwhelming response!  I tried Jack's  solution first 
because it was so easy.  It turns out there's a  simple button on my ftp window 
to choose between binary or ASCII (or  Auto).  Voila!  Works like a charm!  
This has been  immensely helpful!
  Chris
  P.S. Thanks also, Jack, for including the link to an explanation for  why 
this happens.  Interesting how 'un-standardized' computers  are.  I guess it's 
still a new technology.

Jack D <[EMAIL PROTECTED]> wrote:  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

       
---------------------------------
You snooze, you lose. Get messages ASAP with AutoCheck
 in the all-new Yahoo! Mail Beta. 
_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to