in reply to Re: shebang line for Perl scripts under Apache/Windows
in thread shebang line for Perl scripts under Apache/Windows

Yes erix pointed to one of his replies in an earlier tread which describes such a solution, in the Chatterbox. I guess it works... though it's an ugly hack, and I'm not sure what drive the directory has to be on, in order for it to work reliably. Apache's? The website's?
  • Comment on Re^2: shebang line for Perl scripts under Apache/Windows

Replies are listed 'Best First'.
Re^3: shebang line for Perl scripts under Apache/Windows
by BUU (Prior) on Jan 12, 2005 at 19:23 UTC
    It works fine and makes switching machines really simple, at least for me. The drive perl has to be on is which ever drive apache's CWD is on. So if apache's cwd is "C:/foo/bar/", "/usr/bin" will refer to "C:/usr/bin". But if apache starts under D: or some such, it needs to be there. Also note, last I checked, you don't need the entire perl install in this new directory, you can simply add a shortcut named perl, and that should work.