|laziness, impatience, and hubris|
File::Find in a loopby vagabonding electron (Chaplain)
|on Apr 28, 2013 at 15:06 UTC||Need Help??|
vagabonding electron has asked for the
wisdom of the Perl Monks concerning the following question:
this is most certainly a misunderstanding of a scope issue but I cannot solve this puzzle myself.
The following code works:
However if I try to call the same in the loop:
it dies with the message:
If I call the same as an anonyme subroutine, it works:
Could you please explain this behavior?
Thanks in advance.