What kind of file extensions are acceptable for Perl script files?

The extension of Perl script files can be either .pl or.cgi. However, the file extension depends on the specific role of the script, much like file permissions do:

The.cgi suffix should be used for Perl script files that produce publicly accessible web output.
The.pl extension should be used for Perl scripts that are only intended for command-line execution and for scripts that don't provide web output.

Was this answer helpful?

Related Articles

For my Perl script files, what permissions do I need to set?

Depending on the specific function of the script, the appropriate permissions for Perl script...

What version of Perl is installed on Hostginger Hosting's servers?

Hostginger Hosting's servers currently use Perl version 5.30. To determine the Perl version from...

What is the path to the Perl executable?

The absolute path to the Perl executable on Hostginger Hosting's servers is /bin/perl. Generally...

What is the correct FTP transfer mode for Perl scripts?

Always utilize ASCII mode when using FTP to upload Perl scripts to your website. If you upload...