Programming in Perl

Homework 3

Due Tuesday, March 4, 2003 11:59:59pm EST

Check the FAQ frequently
Write a perl program that searches an RCS user's public_html directory for a list of HTML files. You will do this by first prompting the user to enter the username to search for. Once you have this name, you should attempt to open the user's public_html directory. Inside this directory, obtain a list of each of the files that end in .html or .htm.

For each HTML file in the directory:

As you are doing this assignment, be sure to keep several things in mind:

Grading Criteria

Prompt for and read in RCS Id5
Open user's public_html directory7
Get a list of all HTML files15
Print each file's name5
Print a list of all HTML hyperlink addresses15
Print the corresponding list of HTML hyperlink clickable texts10
Create local copy of each HTML file8
Make all correct substitutions in local copy15
Compilation5
Error Checking & Reporting5
Code Style5
Output Style5
As always, 5 Above & Beyond points are available for relevant contributions beyond the requirements.

Submission Instructions

You may again use either the submission CGI program at http://cgi2.cs.rpi.edu/~lallip/cgi-bin/perl/spring03/submit.cgi or the RCS program ~lallip/public/submit.pl Please do not use the opposite method for any re-submissions without emailing me first.
Here are some files for you to use: First Sample HTML file, Second Sample HTML file, Sample Standard Output, Local copy of Sample 1, Local copy of Sample 2. Note that your local copies should have the same file name as the original HTML files.
The program must work on rcs-sun1.rpi.edu. It is due at 11:59:59pm EDT on Tuesday, March 4, 2003.
* That is, quotes are not required for the vast majority of browsers to recognize a link. I am not concerned with what the official HTML or XHTML standards say about the matter.