in reply to File::Xcopy problem

After reading the POD, I'm guessing that the last line of your program should read:
$obj->xcp('c:/temp','c:/temp2','\.txt$');

Mind you this is a guess, as I haven't fully read the entire pod.

TStanley
--------
The only thing necessary for the triumph of evil is for good men to do nothing -- Edmund Burke

Replies are listed 'Best First'.
Re^2: File::Xcopy problem
by boat73 (Scribe) on Dec 16, 2004 at 18:36 UTC
    Tahnks, I had tried that as well as
    $obj->xcp('c:\\temp','c:\\temp2','\.txt$');
    but no good
      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'