Script that needs a view - Somebody's help

They have: 52 posts

Joined: Jul 1999

I have a script that parses html from a given page. Specifically headline news. The problem is that the links of the headline news page are relative links. example: <a href="/news/450000/satchell.htm">
so I need a variable, or a expression (don't know how to call it)to convert that relative path into an absolute path when the script prints out to a template. example: href="http://www.internet.com/news/450000/satchell.htm">
here is part of the code:

#!/usr/bin/perl

$server = "whatever.com";
$document = "/xxx/";

$news = &GetWebPage();
$news =~ s/.*Reuters  - //s;
$news =~ s/<hr><h2>headlines_end_here<\/h2>+.*//s;
$news =~ s/<b>\n//sg;
$news =~ s/<\/b>\n//sg;
$news =~ s/<b>//sg;
$news =~ s/<\/b>//sg;
$news =~ s/<\/center>//sg;
$news =~ s/<\/font>//s;
$news =~ s/<p>//s;
$news =~ s/^\n//sg;
$news =~ s/<font.*?\/font>//sg;
$news =~ s/<small>//sg;

@links = split("\n", $news);
$links = @links[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16];
$news = "<base href=\"new\">\n<p><li>" . $links[1] . "\n<p><li>" . $links[3] . "\n<p><li>" . $links[5] . "\n<p><li>" . $links[7] . "\n<p><li>" . $links[9] . "\n<p><li>" . $links[11] . "\n<p><li>" . $links[13] . "\n<p><li>" . $links[15];

I know it is has to be easy.
Any help will be greatly appreciated Smiling