Problem with subroutine Variable "$file" will not stay shared at..
- From: pod69@xxxxxxx
- Date: 30 Dec 2006 08:14:13 -0800
Hello
I use this function with the subroutine match to find a file:
sub search{
my $file = shift;
use File::Find;
find {wanted => \&match, no_chdir => 1}, "/home";
sub match {
return $_ if /$file/;
}
}
The problem I have is with the inner subroutine. I dont know how i can
get rid of the warning Variable "$file" will not stay shared at. I dont
want to change it i just want to compare it?
thank you
.
- Follow-Ups:
- Re: Problem with subroutine Variable "$file" will not stay shared at..
- From: John W. Krahn
- Re: Problem with subroutine Variable "$file" will not stay shared at..
- Prev by Date: perl -V in 5.8.8 doesn't add architecture dependent directories?
- Next by Date: Re: Assigning pattern matches to an array
- Previous by thread: perl -V in 5.8.8 doesn't add architecture dependent directories?
- Next by thread: Re: Problem with subroutine Variable "$file" will not stay shared at..
- Index(es):