http://www.perlmonks.org?node_id=804637


in reply to Copy preserving attributes

I've used File-Rsync with the --archive option set to achieve this. Not the most elegant solution, but it will do what you want.