Posted by Weasel on 1999-04-09
Amino-X wrote:
> I am about as new to Perl as a newbie can possibly get. I am still
> looking at tutorials deciding on which one to buy. :)
According to Frank Perl5 by examples is quite good:
Frank wrote:
> Try looking at Perl 5 by example online, it can explain it alot better
> than I can but its pretty easy. Enjoy!! Happy Coding.
>
> http://www.codebits.com/p5be/
>
> I recently signed up with a free web hosting service that allows a
> CGI-BIN area, but does NOT allow *.cgi applications, only *.pl apps. The
> problem is I simply can not find *.pl applications anywhere on the
> Internet. My question is what is the difference between *.cgi and *.pl
> applications?
Ok, I'll try to explain:
CGI is the Common Gateway Interface. As the name says, it is the
interface. Perl is a programming language just like C, Pascal, ASM,...
You can write your CGI apps in all those languages. Most of the cgi
programs, however, are written in perl since it has superior string and
regular expression handling wich is quite useful for a majority of
applications you need on the web.
CGI is just the way how parameters are passed to your program (sorry to
those that know better, but it excatly that what matters). To pass
parameters to a normal program, you hand them over at the command line.
CGI handles this a bit different. (see Subject: Re: CGI Script - C/C++;
Date: Sat, 3 Apr 1999 17:06:42 +0200 (MET DST); From: Weasel
<palfrader@xxxxxxx.xxx> for details).
> and where (if anywhere) can I find and download *.pl
> scripts? (I have already tried places like Matts Archive<..>)
Matts script archive is a very good place to start. If he names his perl
script *.cgi, rename them to *.pl :)
HTH
--
Weasel mailto:palfrader@xxxxxxx.xxx
Peter http://www.cosy.sbg.ac.at/~ppalfrad/
------------------------------------------------------------
We have full klingon console support just in case.
-- Alan Cox on linux-kernel
Previous post | Next post | Timeline | Home