Perl copy directory excluding some files
- by user65457
In my Perl code, I need to copy a directory from one location to another on the same host excluding some files/patterns (e.g. *.log, ./myDir/abc.cl).
What would be the optimum way of doing this in Perl across all the platforms?
On windows, xcopy is one such solution. On unix platforms, is there a way to do this in perl?