Perl File Extensions

Your Perl scripts can use the extension .pl or .cgi. Perl scripts that are going to produce output to the Web (world readable) should use the extension .cgi. Perl scripts that are only meant to be executed by yourself via the command line or scripts which may be executed through the Web without any output should be set to the .pl file extension.