amoura has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: regex on a path inside a file
by dws (Chancellor) on Aug 29, 2002 at 19:41 UTC
    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.