in reply to Re^2: Find a list of numbered files with same basename
in thread Find a list of numbered files with same basename

Why is this not returning anything? The files exit the format is correct but glob does not populate the array.
sub find_files{ my ($dir, $db, $table) = @_; my $file = "$dir" ."/" . "$db.$table.[0-9][0-9]"; print "$file\n"; my @files = glob $file; foreach my $found_file (@files){ print "$found_file\n"; } return @files; }

Replies are listed 'Best First'.
Re^4: Find a list of numbered files with same basename
by salva (Canon) on Apr 23, 2005 at 10:16 UTC
    we need to know how you are calling find_files and your dir structure to see what's going wrong. What's the output from the 'print "$file\n"' line?