#decision making for nonnumeric data $first = "Simon"; $last = "simple"; if ($first == $last) { print "The words are the same\n"; } #it is true, why? == only work for numeric data #Eq, Gt, Lt, Ge, Le, Ne #work for nonnumeric values if ($first eq $last) { print "The words are the same"; } else { print "The words are different\n"; } #logical operators #&&, ||, $r = 10; if (($r>=5) && ($r<=15)) { print '$r is ', "between 5 and 15\n"; } else { print '$r is ', "outside the range of 5 and 15\n"; }