At 12:10 PM 06/20/2001 +0200, Aaron Craig wrote:

>At the office, I'm running Apache 1.3 locally on Win2000, and I don't have 
>to use the shebang line, as I have Perl in my path.  However, I just 
>installed Apache on my Win2000 machine at home, using the current Apache 
>installation for Windows (ends with an .msi extension) found on 
>www.apache.org.  Now, I need to use the shebang line, using Windows style 
>paths (ie C:/perl/perl.exe).  I vaguely remember adding a registry entry by 
>hand to get Apache running Perl on my Win2000 here in the office, which I 
>didn't do on my computer at home.  Is that what I'm missing, or has Apache 
>changed and now requires the shebang line on Windows as well.

Thw Win32 port of apache has the "ScriptInterpreterSource" directive which
you must uncomment in the httpd.conf file in order for it to ignore the
shebang lines and use the file associations set in the windows registry.

This is such a great convinience for developing perl scripts on a windows
box that have to be deployed on a unix box. I cant tell you how many times
I've torn my hair out, debugging and trying to figure out why my win32
developed scripts bomb out on my unix boxen...when the problem was just
that I forgot to change the shebang line to point to the unix perl path!

Aloha,
mel



__________________________________________________________
mel matsuoka                    Hawaiian Image Productions
Chief Executive Alphageek              (vox)1.808.531.5474
[EMAIL PROTECTED]                  (fax)1.808.526.4040

Reply via email to