File::Find appears to be very flexible in how it parses directory trees, but it takes a coderef to a subroutine.
Is it possible to use a method? I have some state information which would be really useful to access from within the subroutine, and passing the self reference to the function would be extremely helpful. I guess I could assign self to a global module variable and access this from within the subroutine, but this seems like a kludge.
Any suggestions would be greatly appreciated.
Thanks!
In reply to Can File::Find call a method? by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |