Welcome to the Monastery | |
PerlMonks |
Re: regex on a path inside a fileby dws (Chancellor) |
on Aug 29, 2002 at 19:41 UTC ( [id://193882]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|