关于perl在执行的时候传参无法正常运行出结果,请高人指点! 10
#!/usr/bin/perlmy$question=@AGRV[0];if($question=~/please/){print("Thankyouforbeingpo...
#!/usr/bin/perl
my $question=@AGRV[0];
if ($question =~ /please/) {
print ("Thank you for being polite!\n");
}
else {
print ("That was not very polite!\n");
}
执行 perl test.pl please 结果始终为“That was not very polite”
请高手指点一下我这个菜鸟,刚开始学习,在线等答案 展开
my $question=@AGRV[0];
if ($question =~ /please/) {
print ("Thank you for being polite!\n");
}
else {
print ("That was not very polite!\n");
}
执行 perl test.pl please 结果始终为“That was not very polite”
请高手指点一下我这个菜鸟,刚开始学习,在线等答案 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询