Perl if, else, elsif ("else if") syntax
By Alvin Alexander. Last updated: July 23 2016
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: