PDA

View Full Version : What basically is pearl and cgi?


Andy92
11-16-2005, 10:26 PM
Hey there,

In brief, what is perl and cgi?

Is it worth learning them if im learning, php, mysql, javascript and css?

:)

TheShaner
11-16-2005, 11:44 PM
Perl is a programming language that is known for its string manipulation. It's commonly used in CGI applications, which can perform similarly to PHP, ASP, etc.

However, unlike PHP and ASP, you can't write HTML directly in the page. All the HTML has to be printed out by the CGI application. So it's a Perl program that then has to print HTML to the browser. PHP and ASP can allow HTML to just be written directly in the page and the server will only process the code inside the special tags.

You really don't have to learn (right now) while you're learning the others. Perl will seem be more difficult than PHP, ASP, and JavaScript. I'd save that for later while you're still learning those.

-Shane

Andy92
11-17-2005, 05:34 PM
Ok,

I will probably study it after christmas.

And do pearl and cgi make a nice pc language couple?

And what does pearl and what doers cgi stand for?

hyperbole
11-17-2005, 11:56 PM
CGI is the Common Gateway Interface. It is a group of values that are passed from the web server to any program that it runs when a page request asks for a server side program to run. Most commonly they are made available to the program by environment variables. The (usually Apache) server stores the information about the page request in a set of known environment variables and the program (or script) can access their information by getting the information out of these variables.

Perl is a scripting language. It is often used for writing CGI scripts, but it can be used for doing lots of other things as well. It can be run on a machine where there is a web server running on the machine or not.

You can run Perl on a PC. Look for ActivePerl for a source to download a copy that will run on a PC.

You will only have CGI on your PC if you have a web server (such as Apache, Xitami, etc. ) running on the machine.



.

Andy92
11-18-2005, 05:39 PM
Ok.

And who made perl and cgi?

FishMonger
11-18-2005, 06:29 PM
CGI is a set of standards written by a group of people, not just one person.
http://www.w3.org/CGI/

Larry Wall is the originator of Perl
http://www.wall.org/~larry/

Andy92
11-19-2005, 11:42 AM
Isnt the w3c a group of big companys like microsoft, adobe, mozilla etc?

Jeff Mott
11-25-2005, 08:51 AM
No.

About the W3C (http://www.w3.org/Consortium/)