Re: [MacPerl-WebCGI] CGI.pm problem
[email protected] (Bill Becker) Sun, 17 Feb 2002 10:58:07 -0800
| Newsgroups | perl.macperl.webcgi |
|---|---|
| Message-ID | <p04330100b895abf5f086@[209.239.204.235]> |
The file could have made on a macrosloth platform that uses the X'0D' and X'0A' combinations of line ending characters (I forget which goes first). The \012 is octal and represents 10 in decimal, the same as X'0A'. You may need to strip the extraneous crud from the file. (I don't know if there's a way to tell MacPerl, or the webserver to ignore those characters.) A simple load into BBEdit, or something similar, then using a save-as where the output format is selectable. Be sure to save it in Mac format with Mac line breaks. Hope this helps... At 09:19 -0800 02/17/2002, Lantz and Julia wrote: >I am trying run a simple cgi written in MacPerl that uses CGI.pm. I receiv= e >the following Diagnostic output when I run it. > >Is my problem with my script, or my version of CGI.pm? >Is there a place for me to go learn what the Diagnostic outputs mean? > >Thank you, >Lantz > > >Error: # (Maybe you didn't strip carriage returns after a network transfer?= ) ># BEGIN failed--compilation aborted. File '(eval 1)'; Line 1 > >Diagnostic Output > > ># Illegal character \012 (carriage return). >File 'Macintosh HD:RootDirectory:MacPerl =C4:lib:CGI.pm'; Line 2