----------
>From: Bart Lateur <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Subject: Re: [MacPerl] CGI.pm
>Date: Dima 11 mars 2001 06:06
>
> On Sat, 10 Mar 2001 18:31:09 -0500, Brad Rice wrote:
>
>>I'm having a problem using CGI.pm on my webserver. I can run the script from
>>the command line no problem, but when I try running it in the browser I get
>>a 500 error message.
>
> Is that a Unix style server?
>
>>This is the CGI.pm script:
>>
>>#!usr/bin/perl
>
> Well, THIS line doesn't look right, for a start. The path at least
> should start with a slash as well. And are you sure that the path is
> indeed correct? /usr/local/bin/perl is another popular location.
>
> --
> Bart.
Other point :
If you save your script on Mac, you must save it as a cgi script
(because by default, Mac doesn't give the permission for execution).
If you use macperl : go to "save as..." and in the dialog box, change the
type for "cgi script"
If you use an editor like BBedit (wich I recommand), first save your script,
then go back in your script and go in the macperl menu and in the option
"export to..." : choose "cgi script..."
Then your cgi will have the execution permission.
Jean-Francois Jobidon