Here is how is works:
[email protected] (Ghana Dhungana) Wed, 16 Jan 2002 17:00:10 -0500
| Newsgroups | perl.macperl.anyperl |
|---|---|
| Message-ID | <7D83DB946F18D411AD8B00A0C9FC373604292D94@NT3> |
sub GetListing {
my $parent = shift;
my $file;
my @globfiles;
my $filename ="junk.dbf" # or you can put your file name here.
#print "\nFor directory \"$parent\"\n";
chdir($parent);
my @globfiles = <*>;
foreach $file (@globfiles) {
if (-f $file) {
if ($file =~ /$filename/) {
print "DBF file/s : $parent\/$file\n";
}
}
elsif (-d $file) {
GetListing ("$parent/$file");
}
chdir($parent);
}
}
Ghana shyam.