What is the path to Perl?
Scripts placed in your cgi-bin will be automatically mapped to the Perl Interpreter in our Windows 2000 environment & Linux Server. Please use scripts with the .pl extension as Perl will only be accessed by this extension. Windows 2000 works like a PC, where file associations tell which program to run for each extension, thus there is NO need to know the location of Perl on the server or map to Perl.exe.
The very first line of any CGI script (on UNIX/LINUX type servers) needs to point to the Perl Interpreter. It is the server’s directory path that leads to the Perl executable. Before your program can even begin to run, you must have the correct path entered in every script. Below are the most common paths to Perl. The very first line of each script should look like one of the following : #!/usr/bin/perl — #!/usr/bin/perl5 — #!/usr/sbin/perl — #!/usr/local/bin/perl — #!/usr/lib/perl — The two dashes are more often than not unnecessary, however they do help convert MS Windows files to compatible Unix files, so it’s a good idea to use them. Check your host’s support pages for the correct path on your server. The path to Perl and other essential information should be clearly stated on your web host’s website. If not, try LinuxHostingPlans.com. We guarantee all of our scripts will work on their servers.