use of uninitialized value $line in scalar chomp at 2.3.pl line 10,是哪里出了错?use strict;use warnings;open IN_FILE,"
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/15 20:27:53
useofuninitializedvalue$lineinscalarchompat2.3.plline10,是哪里出了错?usestrict;usewarnings;openIN_FILE,"us
use of uninitialized value $line in scalar chomp at 2.3.pl line 10,是哪里出了错?use strict;use warnings;open IN_FILE,"
use of uninitialized value $line in scalar chomp at 2.3.pl line 10,是哪里出了错?
use strict;
use warnings;
open IN_FILE,"
use of uninitialized value $line in scalar chomp at 2.3.pl line 10,是哪里出了错?use strict;use warnings;open IN_FILE,"
"use of uninitialized value $line" 说你在第10行使用了未定义的值$line ;
09.$line = ; # while循环到最后一行后,没有退出,还要再读入
10.chomp($line); #读入的内容为空,即$line未定义
改成下面的方式:
while(1){
$line = ;
if(not defined($line)){
\x05last;
}
chomp($line);
print "$line ";
$a=$a+$line;
$number++;
}
所以先进行判断,$line是否有值,无则退出
尽管不知道你在考什么,但是大概明白了这是在求一个txt文件中一列数字的平均数
Perl Use of uninitialized value in concatenation (.) or string
perl use uninitialized value,之前运行Ok的,不影响结果但多出来很多这样语句.Use of uninitialized value in split at /ShipWeb.pm line 84.Use of uninitialized value in split at /ShipWeb.pm line 85.Use of uninitialized value in split at
use of uninitialized value $line in scalar chomp at 2.3.pl line 10,是哪里出了错?use strict;use warnings;open IN_FILE,
perl提问 关于 Use of uninitialized value in string eq at line 48,for($i=0;$inima怎么给我归类在外语学习里面了。
make good use of
use both sides of
make use of
英语Use of English
ease-of -use 翻译
请问use of the
hail the use of
the use of sth...
in-stream use of
make the use of和MAKE USE OF的区别
the use of coal and
making better use of your
make the fullest use of
make good use of英译汉