programming-examples/perl/Statement/If and else.pl
2019-11-15 12:59:38 +01:00

8 lines
176 B
Perl

#!/usr/bin/perl
$input=<>;
if ($input >= 5 ) {
print "The input number is equal to or greater than 5 \n";
} else {
print "The input number is less than 5 \n";
}