Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I want to use Perl on our NT servers. We have a cgi bin directory but not a Perl directory. Can I get my Perl scripts to work in a cgi bin or do I need them to have a perl\bin directory on these NT and 2000 servers??

Replies are listed 'Best First'.
Re: Running Perl in cgi bin?
by tachyon (Chancellor) on Nov 04, 2002 at 14:18 UTC
      And if you happen to be running Apache rather than IIS, it's worth knowing that Apache respects the shebang lines in your scripts even on Windows, so you can write things like this:
      #!/my/perl/install/is/here/perl -w use strict; # etc.

              $perlmonks{seattlejohn} = 'John Clyman';

Re: Running Perl in cgi bin?
by robartes (Priest) on Nov 04, 2002 at 14:12 UTC
    That depends. You do not need a perl\bin directory or any other directory for that matter, but you do need a perl executable. If you do not have Perl on your system, you cannot run perl scripts, no matter which directory they live in.

    CU
    Robartes-