in reply to s/// and variable interpolation

To make things a little more readable, I'd use q() to your advantage:
$ScriptPath = q(\\SERVER\C\$\APP\BIN); $file = "$ScriptPath\\somefile.txt"; $file =~ s/\Q$ScriptPath\E\\//; print $file;
prints somefile.txt. Also, note the use of \Q...\E to escape meta characters from the interpolated string.

HTH

--
"I don't intend for this to take on a political tone. I'm just here for the drugs." --Nancy Reagan