programming-examples/perl/Statement/Use if statement to check the integer value.pl
2019-11-15 12:59:38 +01:00

6 lines
76 B
Perl

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