Quantcast
Channel: equality
Viewing all articles
Browse latest Browse all 10

Perl if, else, elsif ("else if") syntax

$
0
0

Perl if, else, elsif ("else if") syntax

Summary: This tutorial shows a collection of Perl if, else, and else if examples.

Here are some examples of the Perl if/else syntax, including the “else if” syntax, which is really elsif. (I wrote this because after working with many different languages I can never remember the “else if” syntax for most languages, and elsif is pretty rare.)

The Perl if/else syntax

The Perl if/else syntax is standard, I don’t have any problems here:


Viewing all articles
Browse latest Browse all 10

Trending Articles