noob question: use File::Copy;

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!


Noob question here:

I am trying to hack a script to move and copy files all files that end in
Here is what I have now....

use File::Copy;
copy("*.dat", "temp-dir")
 or die "copy of  files to  temp-dir failed: $!";
move("*.dat", "other-dir")
 or die "move of  files to other-dir directory failed: $!";

I tried a bunch or reg exp syntax but could not figure out how to get all
files that end in .dat

Any help appreciated.....


Site Timeline