in reply to Re: Insecure dependency in chmod while running setuidin thread Insecure dependency in chmod while running setuid
File::Find has untaint, untaint_pattern, and untaint_skip options for this purpose.
Alexander