//CGI and Perl

Random subroutines in Perl

2010-05-25T22:50:15+00:00 November 23rd, 2007|CGI and Perl|

I'll bet your first question might be "why on earth would I ever want to call subroutines randomly?". Admittedly, it isn't a need that comes up that often, but (for example) it's used right here on this very page that you are reading.

Log Script Use

2010-05-25T23:11:01+00:00 July 25th, 2005|CGI and Perl|

How many old, unused (or under-used) CGI scripts do you have lingering on your server, taking up space? You may not be as guilty of abandoning CGI software in lieu of newer versions as we are (we've been creating, and testing software on the same server for 8 years) but odds are you've got a few dusty, unused scripts lurking about.

Bit Vector, Using Perl Vec

2010-05-25T23:11:43+00:00 July 19th, 2005|CGI and Perl|

A bit vector is just an array of bits; subsets of bits within the bytes have some meaning. That allows more compact storage for certain types of data. For example, if you only needed boolean on-off values, you can store eight values in one byte.

Bit Vector, Using Perl Vec

2010-05-25T23:12:07+00:00 July 19th, 2005|CGI and Perl|

A bit vector is just an array of bits; subsets of bits within the bytes have some meaning. That allows more compact storage for certain types of data. For example, if you only needed boolean on-off values, you can store eight values in one byte.

Build a Perl/CGI Voting System

2010-05-25T23:13:20+00:00 July 5th, 2005|CGI and Perl|

Many Web-deployed applications are written within elaborate database-driven server-side development frameworks such as PHP and Java™ servlets, but for simple applications (for example, where the entire dataset fits comfortably within a Web server's RAM), data persistence can be easily accomplished using locked DBM files in conjunction with the Perl MLDBM module. This article presents a real-world example -- a Web-based voting application -- that highlights the use of minimal external modules, forgoes using client-based cookies, and takes advantage of CGI attributes.

Creating Perl Modules for Websites

2010-05-26T10:54:04+00:00 June 16th, 2005|CGI and Perl|

When you are writing your own code, you are more apt to use someone else's module than write your own, unless your project gets fairly large and complex. Small scripting tasks just don't need the advantages modules offer. However, there is a case where modules might make perfect sense: web server cgi scripts often repeat the same tasks.

Transferring Mail to a New Mail Server

2010-05-26T11:24:10+00:00 May 3rd, 2005|CGI and Perl|

Sometimes we just have to move on. Your current mail server may just not be meeting your needs, so you've put up something new. But what about old mail? If your servers are identical (Sendmail to Sendmail, etc.) or use the same mailbox storage format, you may be able to just transfer files directly. If not, read on..