Is there a perl module or a perl builtin that will perform a file copy but preserve the permissions of the copied file?Unless something has changed recently, the most cited module for copying files, File::Copy doesn't do it. In fact, it doesn't even mimic the default cp behaviour, dropping permissions when you least expect it.
My advice for copying files is to use system cp => @files, $destination. cp is far more useful than File::Copy::copy that a potential loss in portability (but bare in mind that cp has been ported outside of Unix systems) is well worth the gain.
Abigail
In reply to Re: cp -p in perl?
by Abigail-II
in thread cp -p in perl?
by BuddhaNature
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |