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.
In reply to Re^3: Using URI::URL to go through an array of relative URL's
by fishbot_v2
in thread Using URI::URL to go through an array of relative URL's
by lampros21_7
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |