in reply to cp -rp src dst

Errmm... Unix does it in one line but that line is a fairly complex C program.

Why do you want to rewrite cp -rp in perl?
Personally I'd just use a system() call to perform that operation.

Maybe not what you want to hear, but, well... why not use the tools that already exist?

Michael

Replies are listed 'Best First'.
Re: Re: cp -rp src dst
by zinthefe (Initiate) on Mar 05, 2002 at 22:03 UTC
    I'd love to just say `cp -rp ...` but this has to run on Windows as well as Unix.