• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

What is the Perl shebang - path to perl?

J

joelmoss

Guest
Can someone tell me what the correct path to perl is for use in perl scripts?
 
Perl SheBang Syntax

If you are using PSA correctly then IIS should be installed.

Right Click the desired domain
Click Properties
Click The Home Directory Tab
Click Configure
Click Add
Browse to C:\Program Files\Swsoft\Plesk\Perl\bin
Select either Perl.exe or PerlIIS.dll
Click OK
Rename Program Files to Progra~1 in the directory window
Use this same method for .pl, .plx and .cgi files

I strongly recommend you use the .dll filter versus the executable for speed.

In your code, the correct syntax is:
#!Perl


Hope this helped.
 
You should not add extensions to IIS this way. Plesk adds them. If for some reason they aren't there, simply check the domain settings in Plesk.

He is correct for one variable as to the path. There are others and some vary depending on the application.

I would recommend checking a site such as www.activestate.com which creates the primary perl solution for windows. (there are few others, but none as stable or as widely known or used.)
 
Back
Top