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


in reply to File::Find in a loop

But you've missed out a very important part of the error message, where the error is occurring!

It will say at line xxx. So, if you look at that line then it will be obvious where your scoping issue is coming from ;)