programming-examples/perl/Statement/The if-else Construct.pl

8 lines
170 B
Perl
Raw Permalink Normal View History

2019-11-15 12:59:38 +01:00
print "What version of the operating system are you using? ";
chomp($os=<STDIN>);
if ($os > 2) {
print "good!\n";
}
else {
print "Expect some problems.\n";
}