[plug] Apache problem

Steve Grasso steveg at calm.wa.gov.au
Tue Jan 4 09:47:15 WST 2000


> > I had the same problem with perl scripts created in a windows environment
> > that generated html output.  Apache/Perl choked on the dos carriage returns
> > - I think the problem was not apache but perl under linux.  I manually
> > deleted them (cr) in a linux editor (one day i'll have to install dos2unix
> > or similar)
>
>Somebody on this list gave a nice little perl script for
>this:
>
>while( <> )
>{
>    s/\r//;
>    print;
>}

Or from the command line:

perl -p -i.tmp -e 's/^v^m//g;' filename

(where ^v^m is ctrl-v ctrl-m)

Steve

^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v
Steve Grasso
Communications Officer
Web and Multimedia
Conservation and Land Management
Locked Bag 104
Bentley DC
WESTERN AUSTRALIA 6983

steveg at calm.wa.gov.au
+61 8 9389 8644  Voice
+61 8 9389 8296  Fax

http://www.calm.wa.gov.au

^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v
"Opportunity sometimes knocks, but almost never uses the doorbell"



More information about the plug mailing list