in reply to s/// and variable interpolation
The re debug is very usefull for these kind of problems.use re debug; $ScriptPath = "\\\\SERVER\\C\$\\APP\\BIN"; $file = $ScriptPath."\\somefile.txt"; warn $file; warn $ScriptPath; $file =~ s|\Q$ScriptPath\E||; warn $file;
I hope this helps.
---------------------------
Dr. Mark Ceulemans
Senior Consultant
IT Masters, Belgium
|
|---|