$dir='/path/to/dir'; chdir $dir or die "Unable to change to $dir. $!"; @list=glob("db.table.??");