That did the trcik! Nice and clean, thanks Rob
> -Original Message-
> From: Hanson, Rob [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 04, 2003 2:55 PM
> To: Dan Muey; [EMAIL PROTECTED]
> Subject: RE: Modify links
>
>
> Try using URI to figure out the ab
Try using URI to figure out the absolute URL.
use URI;
# the base is the *current absolute page*
my $base_url = 'http://foo.com/documents/help.html';
print URI->new_abs('doc1.html', $base_url), "\n";
print URI->new_abs('./doc2.html', $base_url), "\n";
print URI->new_abs('../documents/doc3.html',