さらに条件分岐を進めよう

my $score = 75;

if ($score >= 80) {
	print("OK");
} elsif ($score >= 40) {
	print ("not ok...");
} else {
	print("take the test again")
}

1行で書く場合

my $score = 75;
print("OK!") if ($score >= 60);
my $a = 10;
my $b = 20;

my $max = $a > $b ? $a : $b;