spacer

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

home / experts / perl / tutorial / 3

Developer News
Microsoft Shows Off Silverlight 4, IE9 Plans
Metasploit Expands Vulnerability Test Framework
HyperCard Reborn?

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.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

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

webref The latest from WebReference.com Browse >
Rolling Out Your Own HTML Application Version Control · HTML 5: Client-side Storage · Working with Ajax Server Extensions
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Wi-Fi Product Watch, November 2009 · Chip Market Recovering From '08 Collapse · Low-Cost Tools to Kickstart Your New Business


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

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