Oldroot will be used as the pattern; It is 'c:\top' newdir was: 'c:\top\dir\file' Can't find pattern 'c:\top' in dir string 'c:\top\dir\file' at pm_790602_03.pl line 13. newdir now: 'c:\top\dir\file' Escaped pattern is 'c\:\\top' newdir was: 'c:\top\dir\file' newdir now: 'c:\newtop\dir\file'