in reply to Misinterpretation of File::Copy

Hi,

see e.g. man cp:

       -p, --preserve
              preserve file attributes if possible
Now this "if possible" says exactly, that only if you have
the necessary rights it will preserve attributes. That is in
your case "being root".

Itīs an inherent Unix feature. Canīt say anything about the Win
behaviour.

Ciao

Replies are listed 'Best First'.
Re: Re: Misinterpretation of File::Copy
by c (Hermit) on Jul 23, 2001 at 15:04 UTC
    It kind of seems like in order to achieve what i want i'll need to use an exec() or system() call for what I am wanting to do, but I was hoping to keep this script as pure perl if possible.

    humbly -c