The If-Else Construct in Perl

This article demonstrates the implementation of The if-else Construct



Implementation

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";
}