PerlHoo, Part II | 7
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
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.
Produced by Jonathan
Eisenzopf and
Created: April 20, 1999
Revised: April 21, 1999
URL: https://www.webreference.com/perl/tutorial/3/