in reply to Re: Why do I need -w in a cgi script
in thread Why do I need -w in a cgi script

s/^M//

\cM, \015, \r or \x0d, but not ^M :)

Juerd # { site => 'juerd.nl', plp_site => 'plp.juerd.nl', do_not_use => 'spamtrap' }

  • Comment on Re: Re: Why do I need -w in a cgi script

Replies are listed 'Best First'.
Re: Why do I need -w in a cgi script
by Abigail-II (Bishop) on Oct 09, 2003 at 16:25 UTC
    I gave the code as a one-liner to be entered from the command line, and then ^M (as in "control-M", and not a caret followed by an M) will work. You might have to enter it as "CTRL-V CTRL-M" in certain shells though.

    Abigail