spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / experts / perl / tutorial / 3

Developer News
Google Chrome Playing Catch-Up on Extensions
Open Solutions Alliance Gets New Leadership
Red Hat Spacewalk Expands Linux Management

PerlHoo, Part II

Managing the Directory Content

Reviewing New Sites

Once users start submitting new sites to PerlHoo for inclusion, you will probably want to periodically review the new entries for inclusion in the directory. To do this, start at the top level PerlHoo directory, defined in $rootdir (Line 32), and look in each subsequent subdirectory for the file defined in $new_datafile (Line 34). The records in the $new_datafile file is in the same order as the form:
  • URL - the URL of the recommended site
  • Title - the title of the link
  • Description - a full description of the site
  • Contact Name - full name of the contributor
  • Contact Email - email address of the contributor

This is the same data and order as the perlhoo.csv data format, except for the contact name and email which is tacked onto the end of the record.

Updating the Directory

If you find a new site that you want to add to the directory, you will currently have to move it to the $datafile file by hand. You can use your favorite text editor or spreadsheet to do this. Boy, that sure does sound tedious doesn't it? I agree. In PerlHoo, Part III, we will build a simple admin interface which will make this process much easier.


home / experts / perl / tutorial / 3

http://www.internet.com

Produced by Jonathan Eisenzopf and

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

webref The latest from WebReference.com Browse >
Popular JavaScript Framework Libraries: An Overview - Part 3 · Accessing Your MySQL Database from the Web with PHP · Working with the DOM Stylesheets Collection
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
MS Access and MySQL · Cisco AutoQoS: VoIP QoS for Mere Mortals · While VoIP Adoption Explodes in Enterprise, Carrier Spending Lags


Created: April 20, 1999
Revised: April 21, 1999

URL: http://www.webreference.com/perl/tutorial/3/