in reply to s/// and variable interpolation

Hi, welkome to the world of metacharacters:-)
use this code to debug this problem.
use re debug; $ScriptPath = "\\\\SERVER\\C\$\\APP\\BIN"; $file = $ScriptPath."\\somefile.txt"; warn $file; warn $ScriptPath; $file =~ s|\Q$ScriptPath\E||; warn $file;
The re debug is very usefull for these kind of problems.

I hope this helps.


---------------------------
Dr. Mark Ceulemans
Senior Consultant
IT Masters, Belgium