PerlHoo, Part III | 2 | WebReference

PerlHoo, Part III | 2

PerlHoo, Part III


First, I'm making the assumption that you've already installed If not, you will want to go back and read PerlHoo Part I and Part II. The source can be had from here. You'll need Perl 5.004 or greater installed on your system along with the the Text::CSV_XS module.

On a win32 system that has the latest version of Perl from Activestate:
ppm install Text-CSV_XS

On any system that has the CPAN module installed (which comes with Perl):
perl -MCPAN -e 'install Text::CSV_XS' to download, compile, and install the module.

Next, install in a secured CGI directory. I intended to build authentication into the script, but ran out of time. It's important that you not put this script in a directory that's publicly accessible unless you really want anyone to edit your Web directory. I recommend adding another CGI directory that's also setup to require Web server authentication. If you don't have control of your server, you're SOL until I add authentication. Of course, you could use Microsoft's security model, security through obscurity, and hope no one becomes the wiser.

Ok, you're almost done. All you have to do now is change two variables in the script. On lines 32-33, change $rootdir and $baseurl to the full local path of your directory data and the URL of the script. If it doesn't work for you, send me some feedback and I'll see if I can help. If you do send me feedback, please don't ask dumb questions, and make sure to include your OS, Perl version, and error messages, if any. The easiest way to do this is to type perl -V from the command line.

That should get you up and running. Now let's pop the hood and take a look at the magic and grease inside.

Produced by Jonathan Eisenzopf and
Created: July 1, 1999
Revised: July 2, 1999