Example: IF statement in Perl
$a=2;
$b=3;
$total = $a+$b;
if ($total > 4) {
print "The sum of the numbers of greater than 4.\n";
}
Output:
The sum of the numbers of greater than 4.
$a=2;
$b=3;
$total = $a+$b;
if ($total > 4) {
print "The sum of the numbers of greater than 4.\n";
}
Output:
The sum of the numbers of greater than 4.