perl警告的问题
my$g2go;openout,"/home/xujie/dge2/Config.lib";while(<out>){chomp;if(/g2go(\s+)(\S+)/)...
my $g2go;
open out,"/home/xujie/dge2/Config.lib";
while(<out>){
chomp;
if(/g2go(\s+)(\S+)/){
$g2go=$2;
}
}
报错Unquoted string "out" may clash with future reserved word at /home/xujie/soft/dge2/genDesc.pl line 40.
Unquoted string "out" may clash with future reserved word at /home/xujie/soft/dge2/genDesc.pl line 47.
我去掉-w就不会有警告。但是我不想去掉-w。不知道这个问题怎么解决。 展开
open out,"/home/xujie/dge2/Config.lib";
while(<out>){
chomp;
if(/g2go(\s+)(\S+)/){
$g2go=$2;
}
}
报错Unquoted string "out" may clash with future reserved word at /home/xujie/soft/dge2/genDesc.pl line 40.
Unquoted string "out" may clash with future reserved word at /home/xujie/soft/dge2/genDesc.pl line 47.
我去掉-w就不会有警告。但是我不想去掉-w。不知道这个问题怎么解决。 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询