Hi everyon, thanks for your help so far....

I am trying to substitute a path for another path.
I have html documents which refer to some images in the following directory:
C:\Documents and Settings\chrisz\Desktop\Web_notes\PFLogo.gif

I would like to change this so it reads:

.../PFLogo.gif

I have tried the following substitution:

$rplcthis = "C:\\Documents and Settings\\chrisz\\Desktop\\Web_notes";
$with = "..";
$line =~ s/$rplcthis/$with/g;

But it does not seem to work. Through testing, I think that it is the '\' character that it does not like in the regex?

Any help would be really great,

Thanks,

Chris.



_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail


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

Reply via email to