PerlHoo, Part II | WebReference

PerlHoo, Part II

PerlHoo, Part II


In Part I of the PerlHoo series, we built a functioning Yahoo-like Web directory in less than 100 lines of code by using file system directories to represent the Web directory hierarchy and comma delimited files (CSVs for short) to store the data. In Part II, we will add the ability for users to suggest a new Web site URL for a particular category in our PerlHoo directory.

If you recall from Part I, we were tasked to build a Web directory that:

  1. Organizes information hierarchically
  2. Contains information about resources on the Internet
  3. Allows users to suggest new resources
  4. Allows editors to modify the directory content
  5. Is simple to maintain
  6. Takes less than 1 week to develop
  7. Exports and imports directory content from/to multiple sources
We have addressed requirements 1, 2, 4, and 5 for the most part. We will focus on requirement #3 in this article. Before we get into the code, we will take a moment to talk about how and why a Web directory can make your Web site more valuable. We'll also discuss the need and value of requirement #3 and how it may be useful on your Web site. View source | Try it
This script implements a simple Yahoo-like Web directory using regular directories and comma delimited data files.

Produced by Jonathan Eisenzopf and
Created: April 19, 1999
Revised: April 21, 1999