在perl中,求下面打印的结果
$line = <STDIN>;
if($line eq “\n”){
print “That was just a blank line!\n”;
}else{
print “That line of input was: $line” ." world";
}
此时从标准命令行输入的完整信息是 hello
That was just a blank line!
等待中,没有输出
That line of input was: hello world
That line of input was: helloworld
这道题你会答吗?花几分钟告诉大家答案吧!