http://qs321.pair.com?node_id=379893

sutch has asked for the wisdom of the Perl Monks concerning the following question:

I'd like to know options for determining if a URL is part of a website using URI::URL, or any other perl module.

For example, if the "site" that I'm interested in is http://www.comp.leeds.ac.uk/Perl/, and my script encounters the URL http://www.comp.leeds.ac.uk/Perl/filehandling.html, is there some method that returns a true value signifying that the URL is part of the site? I regular expression seems to be the way to go, but I'd guess that someone has already done this and published a module that handles the tricky stuff, such as case and whatever else I haven't yet thought about.