in reply to File::Find exit

File::Find looks perfect to me if you need to recurse through subdirectories. But you might consider only doing the find() only once if the contents of the directory isn't apt to change.

Perhaps you should show the actual code in context (including the "outer loop not shown")