programming-examples/perl/Statement/If statement with scalar variable.pl
2019-11-15 12:59:38 +01:00

8 lines
122 B
Perl

$variable = 5;
if ($variable == 5) {
print "Yes, it's five.\n";
} else {
print "No, it's not five.\n";
}