difference between .CGI and .PL

.pl is the standard Perl extension.

.pl just to indicate it’s written in Perl

.pl files are executed from a unix command line

.cgi is the standard extension for CGI executables

.cgi files are executed by a web server

Both could have the exact same code inside.


the cgi extention can really be anything, it all depends on the way the HTTP server was configured to run scripts(ScriptAlias)

cgi script file does not have to be just perl, it can be shell script, or C program



One thought on “difference between .CGI and .PL

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s