in reply to Windows permissions

Try Win32::FileSecurity along with File::Find.

Both come standard with ActiveState, including decent documentation and examples.