Knowledgebase: Information On Perl
What are the correct file extensions for Perl scripts?
Posted by Roy Petersen on Feb-15-2007 12:16 PM
Your Perl scripts can have the extension .pl or .cgi. However, Perl scripts that are going to produce output to the web (world readable) would use the extension .cgi. Perl scripts that are only meant to be executed by yourself via the command line or even scripts which may be executed through the web without any output should be set to the .pl file extension.