Perl day 2: if statements

The if statements that I’ve seen in perl seem to be pretty much the standard. It looks like the standard kind that I’ve used in java. Today’s link is the perl – if statement syntax webpage.

We got our basic if then a boolean expression in parenthesis and then the statements that will run that satisfy it.

$a = 2;

if ($a == 2) {
print "true\n";
}

This entry was posted in software and tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *