opendir (DH, 'ligand');
my @folder = readdir DH;
for my $file(@folder) {
$count1++;
open (IN_1,"<$file") or die "cannot open:$!\n";
my @array1=;
$hash[$count1-1]=$array1[1];
close IN_1;
print "$file\n";
}print $count1;
出现
Name "main::IN_1" used only once: possible typo at zuo.pl line 15.
.
..
cannot open:没有那个文件或目录
请问为什么?谢谢!