[San-Diego-pm] Shebang path issue

Joel Fentin joel at fentin.com
Fri Nov 22 12:12:59 PST 2013

On 11/22/2013 11:39 AM, Chris Grau wrote:
> It's not that Perl on Windows ignores the #! line, it's that Windows
> doesn't use it. It's a Linux thing (by which I mean *nix, but most
> people use Linux these days). The program loader uses it to find the
> interpreter to use. Windows instead uses registry entries to associate
> file extensions with programs.
> In any case, running 'perl script.pl' in either Linux or Windows will
> use whatever 'perl' shows up first in the path.
> Apache on Windows will use the #! line to find the interpreter, since
> it doesn't have any other way of doing so. I assume, then, that you've
> installed Perl on Windows under 'C:\perl'.
> If that works, what workaround are you looking for?

Yes, I installed Perl under C:\perl. But I changed that to C:\usr. 
That way I can write/debug here and send my files up to the 
internet with no changes.

Very occasionally I have to change it back to C:\perl temporarily, 
but not often. That is the workaround I was looking for. It's 
nothing super important.

Joel Fentin       tel: 760-749-8863
Biz Website:      http://fentin.com
Personal Website: http://fentin.com/me

More information about the San-Diego-pm mailing list