Hallo
der Code funktioniert nicht - ich bekomm da immer so ne warnung - Variable "$file" will not stay shared at - irgendwas stimmt da nicht mit der subroutine?
thx
der Code funktioniert nicht - ich bekomm da immer so ne warnung - Variable "$file" will not stay shared at - irgendwas stimmt da nicht mit der subroutine?
Code:
sub search{
my $file = shift;
use File::Find;
find {wanted => \&match, no_chdir => 1}, "/home";
sub match {
return $_ if /$file/;
}
}
thx