>When does a script require a .pl or .cgi extension?
It depends on the setting of the web server it is being used with - if the web server only knows that .pl files get run with Perl, only files with those endings will work.
>Do I configure the line that reads #!/usr/
>bin/perl as: #!/usr/bin/perl #!/usr/bin/perl5 #!/usr/bin/perl5.0503 >(The first two work).
That directive notes where the perl executable is, so that it can be used with the script. This is usually only needed with Unixish platforms. (though I thin Apache on Win32 needs it for some reason... I don't recall.) If it works right, it works right. /usr/bin/perl is probably linked to the most recent version of Perl on you machine, so it should function right. | [reply] |