For more complex operations if and unless can be used to control the execution of whole blocks.
if ($a == $b) {
print "a equals b\n";
$a += $b;
}
unless ($a == $b) {
print "a does not equal b\n";
die "Operation aborted!";
} |
|
| Contents |
Next |