in reply to Sorry, Lets try the long version.
in thread Return values, Closure Vars from File::Find &wanted subs?
For tighter scoping, you can enclose it in a block with the subs that use it (main and wanted in your example code).
ikegami's solution shows you how to do multiple finds that don't all write to the same array. That is one of the main things closures are useful for.
|
|---|