[问题] 程式运行时发生错误

楼主: chen1i6c04 (轻踏水无痕)   2017-08-08 11:47:42
因为工作上的需要接触了一些使用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
麻烦各位帮忙看一下,谢谢
作者: herculus6502 (金麟岂是池中物)   2017-08-08 15:52:00
所以898行是哪一行?有附测试资料吗?这样很难抓吔
楼主: chen1i6c04 (轻踏水无痕)   2017-08-08 16:11:00
问题已解决,似乎是测试资料有问题,真是不好意思

Links booklink

Contact Us: admin [ a t ] ucptt.com