B
Ben Tisdall
Hi,
whilst I'm still trying to get my head round the debugger, any pointers
as to why the script fragment below causes one or more of the following
warnings would be most appreciated!
Use of uninitialized value in numeric eq (==) at
/Users/bentis/bin/find_dupes.pl line 12.
#!/usr/bin/perl -w
use strict;
use File::Find;
use File::Compare;
my ($infile,$i,@allfiles,$basefile,$cmpfile,$matched);
find(\&wanted, @ARGV);
sub wanted {
$infile = $File::Find::name;
{
last if (/^\~.*\.tmp/i);
last if (/^\..*/);
last if ((stat($infile))[7] == 0);
last if (-d $infile);
push (@allfiles,$infile);
}
}
....
Best,
whilst I'm still trying to get my head round the debugger, any pointers
as to why the script fragment below causes one or more of the following
warnings would be most appreciated!
Use of uninitialized value in numeric eq (==) at
/Users/bentis/bin/find_dupes.pl line 12.
#!/usr/bin/perl -w
use strict;
use File::Find;
use File::Compare;
my ($infile,$i,@allfiles,$basefile,$cmpfile,$matched);
find(\&wanted, @ARGV);
sub wanted {
$infile = $File::Find::name;
{
last if (/^\~.*\.tmp/i);
last if (/^\..*/);
last if ((stat($infile))[7] == 0);
last if (-d $infile);
push (@allfiles,$infile);
}
}
....
Best,