On Fri, 28 Jul 2006, Dr.Ruud wrote:
> Date: Fri, 28 Jul 2006 14:13:48 +0200
> From: Dr.Ruud <[EMAIL PROTECTED]>
> To: beginners@perl.org
> Subject: Re: Same Internal Server Error from last two days
>
> Ranish George schreef:
>
>
> > Have you tried changing the shebang line as I have mentioned in
> > one of the follow up. Trying changing the shebang to
> >
> > #!C:\Perl\bin\perl
>
> That should not make any difference. Windows doesn't use the shebang;
> perl reads it but is only interested in parameters (like -T).
>
> So on Windows
>
> #!/usr/bin/perl -T
>
> and
>
> #!perl -T
>
> and
>
> #!C:/Perl/bin/perl -T
>
> should all work in the same way, and all fail in the same way.
>
>
Greetings;
Not true in this case. Apache requires the shebang line for cgi
scripts and it must point to perl. Apache doesn't seem to care
whether it is #!D:\Programs\Perl\bin\Perl.exe or
#!d:/programs/perl/bin/PERL.EXE any expression of a valid
path seems to make Apache happy. (I have been experimenting
with this for the last three hours, off and on.)
If you are running the perl program directly under windows
from a DOS box, double click, etc., then windows uses the
file extension association to find perl and the shebang line
is not needed unless you need to pass switches to perl. This
has the unfortunate consequence that any perl program will
run from a command prompt if the file extension is correctly
associated with perl even though the shebang path is incorrect.
Good Luck!
Dennis
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>