Use a bare block to limit the scope of your variables:
{ my @files; find( sub { push @files, $_ }, @my_directories ); # ... do stuff to @files }; # @files is invisible here
In reply to Re: File::Find and non global Variables
by Corion
in thread File::Find and non global Variables
by Skeeve
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |