Jump to content
Sami

Tutorial?

Recommended Posts

Perl is a scripting language. You can use it to write executable programs, shell scripts, and construct pre-processed web pages.Is it worth learning? Well... it is a useful scripting language, and is quite simple, but it is a bit outdated and you may be better off learning Ruby, or similar. However, it won't be a waste of time!The P in LAMP may stand for Perl... but more usually it is PHP nowadays. There is an Apache module for it, however.

Share this post


Link to post
Share on other sites

For a long time, Perl was the scripting language for the web. This is because it is the scripting language for automating tasks in the Unix environment. Because the first webservers existed only on Unix machines, it made sense to use Perl for web scripting.But it was never designed to be a web scripting language, and future revisions are not designed to make it more web-friendly. 3rd-party libraries help Perl adapt to the web. But it's a bit of a hassle to <include> all kinds of files to do everyday jobs like parsing POST data.I was a Perl scripter until I learned PHP. My only relationship with Perl today is to occasionally update very old scripts that are not worth the time it would take to rewrite them in PHP.

Share this post


Link to post
Share on other sites

Why is Perl usually associated with CGI? What is CGI anyways? All i know is that it stand for common gateway interface.

Share this post


Link to post
Share on other sites

The Common Gateway Interface provides an interface between a scripting language and a web server. It accepts requests for content from the web server, invokes scripts, and returns the results to the server, in the same way that mod_rewrite enables PHP to work with Apache.Perl and most other scripting languages by itself cannot interact directly with HTTP requests (unless you write a server using it...), but using the CGI they can.

Share this post


Link to post
Share on other sites

CGI is more of a specification than an actual program, though most implementations are probably written in C++.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×