#decision making # if () {} else {} print "please key in an integer: \n"; $r = ; chomp $r; if ($r == 10) { print '$r is 10', "\n"; } else { print '$r is something other than 10...',"\n"; } # ==; >; <; >=; <=; != #note: only for numerical values