Guy Tubbs wrote:
> 
> Can anyone tell me how to insert a forward slash '/' into a variable when
> searching and replacing.
> 
> If you look below I'm trying to search for 'booking2.html' then replace it
> with 'http://xxx' etc, but I get an error when it's run.
> 
> $line=~s/booking2.html/http:////www.mysite//booking2.html/g;

escape each one with a backslash (note you'll need to escape the periods
too):

$line =~ s/booking2\.html/http:\/\/www\.mysite\/\/booking2\.html/g

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to