open ( TMP, "FILE.TMP" ) || "Can not open file FILE.TMP!\n";
close TMP;
运行之后,总显示:
Useless use of a constant in void context at test.pl line 4.
这到底是什么意思?该如何改呢?
...全文
392打赏收藏
请教:打开文件时,总有一句提示,谁能帮忙看看,多谢!
#!/usr/bin/perl -w #program test.pl open ( TMP, "FILE.TMP" ) || "Can not open file FILE.TMP!\n"; close TMP; 运行之后,总显示: Useless use of a constant in void context at test.pl line 4. 这到底是什么意思?该如何改呢?