in reply to Re^2: File::Xcopy problem
in thread File::Xcopy problem

I believe that the problem is that you are looking for '\.txt$' files. Remembering that single quotes prevent interpolation, instead of looking for files that end in .txt, it is looking for files that end in .txt$ Try just '.txt'