How can I copy a directory but ignore some files in Perl?

Posted by user65457 on Stack Overflow See other posts from Stack Overflow or by user65457
Published on 2010-03-22T10:46:03Z Indexed on 2010/03/23 17:23 UTC
Read the original article Hit count: 176

Filed under:
|
|

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?

© Stack Overflow or respective owner

Related posts about perl

Related posts about copy