Your sub ProcessFile is defined to form a closure on the lexical @a_files. It will bind to the first instance, and ignore others.
One simple way to fix this is to make @a_files global and localize it instead where the my declaration occurs.
After Compline,
Zaxo
In reply to Re: Confused scoping while using File::Find
by Zaxo
in thread Confused scoping while using File::Find
by rongoral
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |