http://www.perlmonks.org?node_id=462991


in reply to Re: Perl thinks it's the shell!
in thread Perl thinks it's the shell!

Verging on OT, but:

Also, I believe Apache uses the #! line rather the file association.
Correct. When I used Windows, I always installed ActivePerl to c:/usr/ instead of the standard c:/Perl/, this way the standard shebang (#!/usr/bin/perl) worked without any conversions, assuming of course that Apache also was on C:

Replies are listed 'Best First'.
Re^3: Perl thinks it's the shell!
by Phaysis (Pilgrim) on Jun 03, 2005 at 14:32 UTC
    What I do is install Activestate Perl in the default spot then create the directory path C:\usr\bin\ into which I drag-drop a copy of perl.exe. Apache uses this executable as detailed in the shebang #!/usr/bin/perl . Since the executable knows where its libs are, everything works like a charm. You can then take your locally-developed scripts and port them to *nix platforms if you want with nary an edit!

    (Ph) Phaysis (Shawn)
    If idle hands are the tools of the devil, are idol tools the hands of god?