Using and (&&) operator with if statement
use integer; $variable = 5; if ($variable < 6 && $variable > 4) { print "Yes, it's five.\n"; }