You can write:
{ # enclosing scope my @found_files; sub criteria { # do the right thing } } find(\&criteria,$dir);
Of course, now you have to decide how large a part of your script needs access to the @found_files variable.
--
dakkar - Mobilis in mobile
In reply to Re: Re: Re: file::find question
by dakkar
in thread file::find question
by smackdab
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |