in reply to
File::Copy but...
You might try something like the following (untested):
my $mode = (stat $oldfile)[2]; chmod( $mode, $newfile );
[download]
Comment on
Re: File::Copy but...
Download
Code
In Section
Seekers of Perl Wisdom