Re: Problem with subroutine Variable "$file" will not stay shared at..



oh thank u very much for your hint i solved it now like that
my $file;
use File::Find;
find {wanted => sub {$file = $_ if /$filename/ }, no_chdir => 1},
$ENV{INCA_DIST};
return $file;

and with return $file it works;

thx

.