我敲入了简单的嵌套if语句。perl嵌套,如果还是别的
要求如下。
if (Condition1) {
if (Condition2) {
print "All OK";
}
else {
print "Condition1 is true but condition2 not";
}
else {print "Condition1 not true";
}
是否有可能在Perl编写代码或有任何其他短/更好的方式来满足这个条件?
感谢您指出小错误...很大 – Mahesh