One of several ways is 

Vi the file in Unix (assuming you try to run it there) then

Shift :
1,$s/<press Ctrl - v> M//g

This will remove all Ctrl-M in the file

You can script this very easy

Saludos
Javier
Javier Nunez
Principal Systems Support Engineer
[EMAIL PROTECTED]
+1 (480) 375-6263
DHL ITSC Americas

----- Original Message -----
From: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Sent: Mon Jun 25 13:40:43 2007
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?gamekey=monopolyherenow>
  (it's updated for today's economy) at Yahoo! Games.
_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to