programming-examples/perl/Statement/If and else.pl

8 lines
176 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
#!/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";
}