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$/); } }
In reply to Re: Pulling a file with a given extension
by cognizant
in thread Pulling a file with a given extension
by rashley
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |