Anyone know how to get File::Copy module to keep file permissions when it copies from one location to another?
Thanks
"File::Copy also provides the "syscopy" routine, which copies the file specified in the first parameter to the file specified in the second parameter, preserving OS-specific attributes and file structure. For Unix systems, this is equivalent to the simple "copy" routine, which doesn’t preserve OS-specific attributes."
I suspect that means it can't... but wrapping it in your own routine using 'stat' and 'chmod' to reset the permissions should be sufficient.
perldoc -f stat perldoc -f chmod
Be sure to catch the part in the stat page about masking off the filetype....
http://danconia.org
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>