- or download this
use File::Copy;
copy("oldfile", "newfile");
- or download this
my @files = <some\\path\\here\\*>;
#the * means all files in that directory
#just in case you were confused.
- or download this
unlink($filename);
- or download this
chdir($path) or die "foo error message\n";
#now do some foo with $filename in this directory