my $mode = (stat $oldfile)[2]; chmod( $mode, $newfile ); [download]
In reply to Re: File::Copy but... by simonm in thread File::Copy but... by jey