単純なネストされたifステートメントを打ち込みました。
要件は以下の通りです。
if (Condition1) {
if (Condition2) {
print "All OK";
}
else {
print "Condition1 is true but condition2 not";
}
else {print "Condition1 not true";
}
このコードを Perl で書くことは可能ですか? または、この条件を満たすための別の短い方法またはより良い方法はありますか?