programming-examples/perl/_Basics/Boolean operator.pl

15 lines
252 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
print "Please enter numbers from 5 to 10\n";
while (<>) {
chop;
if ($_ < 5 || $_ > 10) {
print "Please enter numbers from 5 to 10\n";
} else {
print "Thank you - let's have another!\n";
}
}