Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: regex on a path inside a file

by dws (Chancellor)
on Aug 29, 2002 at 19:41 UTC ( #193882=note: print w/ replies, xml ) Need Help??


in reply to regex on a path inside a file

thanks for any hints

Two hints: You have two problems with   $_ =~ s/\..//../nbssbase/$vob/g;
First, you're only escaping one of the periods. Second, since the pattern you're matching uses the same characters that you're using to delimit the substitution regex, you need to either choose different delimiters, or escape those characters in the pattern.


Comment on Re: regex on a path inside a file
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (18)
As of 2015-07-01 17:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (14 votes), past polls