in reply to Grabbing a Web Page and Replace Variables
Like this (changed delimiter - I find | easier on the eye:
$webpage =~ s|href="$_|href="thedomain/$_|gis
Although, I'd probably use this (assuming all links are relative URLs):
$webpage =~ s|<HEAD>|<HEAD><BASE href="thedomain/">|is;
to add a BASE HREF for the page.
.02
cLive ;-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Grabbing a Web Page and Replace Variables
by LostS (Friar) on May 04, 2001 at 23:56 UTC |