因为工作上的需要接触了一些使用Perl写的生物资讯软件
但按照指示安装并运行测试指令后,出现以下错误
$ Can't use an undefined value as an ARRAY reference at mlst.pl line 898, <TBL> line 6221.
错误讯息的程式码如下
for (my $i=0; $i < scalar(@$hitArray); $i++){
my $tmpQuerySingleLine = @$queryArray[$i];
my $tmpHomoSingleLine = @$homoArray[$i];
my $tmpHitSingleLine = @$hitArray[$i];
$txtresults .= "MLST allele seq: ".$tmpQuerySingleLine."\n";
$txtresults .= " ".$tmpHomoSingleLine."\n";
$txtresults .= "Hit in genome: ".$tmpHitSingleLine."\n\n";
$allelealign .= $tmpQuerySingleLine."\n";
$hits .= $tmpHitSingleLine."\n";
}#end for
麻烦各位帮忙看一下,谢谢