Right now, I am using something like
copy catfile($PATH1, "instructions.txt"), catfile($ENV{'DIRWORK'});
individually for each of the .txt
files that I want to copy. This code is portable as it does not use any OS specific commands.
How can I copy all the text files from $PATH1
to DIRWORK
, when I do not know the individual names of all the files, while keeping the code portable?