|
Functions by Category Functions by Alphabetical list
Used to control the flow of your system. This function is similar to if, except that the expression being tested has to return false. The use of unless is the same as if, and can be used with else. Examples: This example will output "if". my $number=5;
if ($number==5) {
Output('if');
}
unless ($number==5) {
Output('unless');
}
While this example will output "unless". my $number=7;
if ($number==5) {
Output('if');
}
unless ($number==5) {
Output('unless');
}
Related functions:
|