5.17. Your Salary is in Danger - Short-CircuitIf perl already knows the final value of a boolean expression after computing if ($my_money > 1_000_000 or $my_salary > 10_000) {
# I can live well
}
if ($my_money > 1_000_000 or $my_salary++ > 10_000) {
# I can live well
}
|
Follow me: