in reply to problem using File::Find and taint

You can also use no_chdir => 1 as an option. This makes the problem go away, though your &wanted function may need to know about this.