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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Using URI::URL to determine resources within a site
by mifflin (Curate) on Aug 04, 2004 at 05:24 UTC | |
Re: Using URI::URL to determine resources within a site
by Gilimanjaro (Hermit) on Aug 04, 2004 at 11:00 UTC |
Back to
Seekers of Perl Wisdom