朱离
2014-04-23 05:41
采纳率: 100%
浏览 2.2k

perl文件句柄出现的问题?

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:没有那个文件或目录
请问为什么?谢谢!

1条回答 默认 最新

相关推荐 更多相似问题