Hello
I've read the File::Copy perldoc and didn't see how you can pass
something to preserve file ownership.  So, I guess you're stuck with
using "system".  You can try setting the file attributes manually using
chown after using File::Copy but that all depends on your situation.
Sometimes it's worthwhile to use the system cp--when backing up all
home directories, just fire cp -a /home /backup and let it do the job.
If using system is your only option, make sure you don't use the single
argument option but use :
        system '/bin/cp', $file1, $file2;
That way you avoid problems with non-regular file names.

Hope this helps,,,

Aziz,,,

In article <[EMAIL PROTECTED]>,
"charles" <[EMAIL PROTECTED]> wrote:
>       i guess that i am really looking for the answer as to whether or not my
>       situation merits
> 
>         system('cp -p /foo.txt /bar.txt');
> 
>       or if this is something that can be done with File::Copy.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to