Perl was one of the first computer languages every written, through it’s years of existance the contributers of the language have made it one of the the most robust and powerful languages there are. Perl is short for Practical Extraction Report Language, because that’s what it is. It creates and extracts data on the fly with remarkable speed.
You will often times hear the words Perl and CGI together as if they’re one and the same. It’s safe to think this, as CGI is a module built for Perl, the main difference is CGI is typically OOP (object-oriented programming) while Perl itself usually is not. CGI is short for Common Gateway Interface which is a great name because it’s Perl’s interface to work on the web.
What does it do?
Since this is one of the fastest languages there are, this makes a great report processing and retrieval language. You can parse hundreds of thousands of lines of code from a text file in just a few seconds (I typically can get around 80,000 lines returned in a fraction of a second).
Some very common uses for Perl/CGI: Data extraction, encryption, contact forms, guestbooks, full ecommerce sites, web parsers and web bots, search engines, image manipulation, security.
What can’t it do?
It can do nearly anything you can think of when working in strictly Perl on your own computer. You can create graphics, setup password scripts, encrypt files, track users, etc. But on the web, it’s only limitation is the fact it’s a server-side language.
What do I need?
If you want to run Perl scripts on your own computer and you’re on Windows or Mac, you’ll need to download ActiveState Perl. The link for this can be found in Tutorials section, be sure to always download the latest version. At the time of writing this article, the latest version is 5.8.6.
To use CGI, you’ll either need your own server or a server hosted by another company online. Your server or web host must allow CGI support. If it doesn’t, you will not be able to use web based Perl scripts. There are many free servers out there that do allow CGI and nearly all paid hosts will. CGI is a standard which makes finding a worthy host a much simpler task.
I waltzed into the Web Design community as a professional when I was just 15 years of age founding SpyderWebDesigns. Through the years my interests shifted from web development to backbone and user interaction.In 2000 Sulfericacid.com was born. The world’s largest free and 100% ad-free web site where you could use and download 24 Perl and CGI script along with tutorials without limits or restrictions. January 2005 the site was renamed to SpyderScripts.com as a subsidy of SpyderCo.
In 2001 I also founded an SEO company SpyderSubmission.com. We’ve helped nearly 2300 web sites achieve higher rankings than they ever could have imagined since our launch four years ago.
On a more personal note, I’ve attained 28 certifications from BrainBench.com and about 40 certifications in total from all resources. One of these is a near Masters in Perl which ranks second highest test score in the state and 17th throughout the country.
I have a Perl Abbot status on PerlMonks.org working on getting my Perl Saint status this fall.