in reply to Re^2: Using URI::URL to go through an array of relative URL's
in thread Using URI::URL to go through an array of relative URL's

In that case, use the base() method from WWW::Mechanize:

my $webcrawler = WWW::Mechanize->new(); my $content = $webcrawler->get($url) || die( "!!etc" ); my $base = $webcrawler->base();

The base url for a page isn't available until you actually look at the page. You can't divine that information from the URI object.