in reply to Re^2: Crawling Relative Links from Webpages
in thread Crawling Relative Links from Webpages
Something like:
my $uri = $mech->uri; my( $server ) = $url =~ m[(^http://[^/]+)/]; ... my $pdfurl = $server . $link;
Note: There probably is some way of getting the appropriate portion of the url from URI without resorting to regex, but I've never worked out how.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Crawling Relative Links from Webpages
by Anonymous Monk on May 08, 2010 at 03:44 UTC | |
by BrowserUk (Patriarch) on May 08, 2010 at 03:54 UTC | |
by Anonymous Monk on May 08, 2010 at 04:17 UTC |