F
Felix
Hi -
I need a perl function ("make_absolute")that turns all relative URLs
in an html document into absolute URLs, using the URL from which the
document was fetched as an argument (see script below), and then
returns the updated, entire html document.
I fiddled with Perl classes like URI and HTML
arsner but wasn't able
to get it right. Thanks a bunch.
#script:
$content = get ($url);
$content = &make_absolute ($content, $url);
print $content; exit;
sub make_absolute {
# need code here
}
I need a perl function ("make_absolute")that turns all relative URLs
in an html document into absolute URLs, using the URL from which the
document was fetched as an argument (see script below), and then
returns the updated, entire html document.
I fiddled with Perl classes like URI and HTML
to get it right. Thanks a bunch.
#script:
$content = get ($url);
$content = &make_absolute ($content, $url);
print $content; exit;
sub make_absolute {
# need code here
}