#!/usr/local/bin/perl # The following are examples of the if-then-else conditional statements $var=5; if($var == 1) { print "\$var is 1\n"; } elsif ($var == 5) { print "\$var is 5\n"; } else { print "\$var is not 1 or 5\n"; }