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.