Perl copy directory excluding some files
        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/22
            10:51 UTC
        
        
        Read the original article
        Hit count: 504
        
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