in reply to ActivePERL is the devil?
So then all you need is the "dir". I noticed you are using system calls, that is unnecesary for these type of commands.use File::Copy; copy("oldfile", "newfile");
finally to delete a file use the followingmy @files = <some\\path\\here\\*>; #the * means all files in that directory #just in case you were confused.
If you want to set the context of your perl program to read from a particular directory without having to constantly put a $path + $filename then do the followingunlink($filename);
you just got served lolchdir($path) or die "foo error message\n"; #now do some foo with $filename in this directory
|
|---|