in reply to Pulling a file with a given extension
Cheers --C$input = $ARGV[0]; #input directory find(sub {push(@ara, $File::Find::name) if -d}, $input); foreach $arr (@ara) { opendir (FIN, "$arr") || die("can't open $arr"); my @cnt = readdir(FIN); chdir($arr); foreach $temp (@cnt) { print "$temp" if ($temp=~/\.dat$/); } }
|
|---|