Indeed, I have learned a lesson. A cool one though. I was not sure what a closure was. It is kind of a difficult concept. However, I now see why my variable maintained its value even after the surrounding function had returned and the scope was lost.
I am grateful for the knowledge passed along.
In reply to Re^4: Confused scoping while using File::Find
by rongoral
in thread Confused scoping while using File::Find
by rongoral
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |