in reply to File::Find and non global Variables
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 [download]