Perl: if() Statements
if() Statements
Used to execute a block if a statement is true (or false)
if ($a < 10) { # This will print a messages if $a is less than 10
print "a is less than 10";
if ($name eq "homer") { # Note the string comparison operator