The pages I'm checking are static. I was attempting to use an array to keep track of visited links but then I was having problems when testing to see if the page was already in there, etc. Something wrong with my regular expressions. I think the hash will work better though. Thanx for your suggestions.
For a string comprised of "http://www.whatever.html/directory/" how would I right a regular expression that'd make this equivalent to "http://www.whatever.html/directory/index.html"? Essentially I'd like to do this so that it doesn't test the same file twice with different names.