Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: s/// and variable interpolation

by mce (Curate)
on Dec 16, 2002 at 13:27 UTC ( [id://220195]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://220195]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-03-28 21:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found