Sometimes, a programmer might want to have the "if statement" do something else if the first part of it is not true. This is known as an else block. Here is an example of an else block in the Perl programming language.