Home: General Discussions: General Questions:
what is the difference between a pl file and a cgi file



obrien135
Novice

Nov 15, 2012, 4:50 AM


Views: 23881
what is the difference between a pl file and a cgi file

What is the difference between a pl file and a cgi file?



Do you have to convert a pl file to a cgi file before it can work (maybe in some cases; if so when?)? How do you perform such a conversion?



George


EveryAuction
New User

Dec 4, 2012, 7:53 AM


Views: 23783
Re: [obrien135] what is the difference between a pl file and a cgi file

I am not a Perl guru, but I have been working with Scripts for some Years.

Programming with cgi is different from programming with Perl. But when it comes to a file extension .pl or .cgi, it does not really matter wich ending you use. You therfore may change endings from .cgi to .pl without a problem.

Personally, I like Perl Scripting better, because it is more 'transparent' to handle, compared with cgi.

I guess this is what you want to know, and since noone from the Guru's has replied, I did it in my simple and unprofessional way...

Ernie


FishMonger
Veteran / Moderator

Dec 5, 2012, 8:35 AM


Views: 23263
Re: [EveryAuction] what is the difference between a pl file and a cgi file

cgi is not a programming language. It's a set of specifications which specify how an application communicates with a web server. See RFC 3875

cgi programs can be withing Perl, PHP, C, and just about any other language that can read/write to STDOUT.


(This post was edited by FishMonger on Dec 5, 2012, 8:36 AM)