The statements are one of the most important topics in the Perl language, actually for any programming language. You use statements in order to process or evaluate the expressions. Perl uses the values returned by statements to evaluate or process other statements, and so on.
Mainly, there are two kind of statements:
- Conditional statements that include: if, switch and unless
- Loop statements which include: do-until, do-while, for, foreach, until and while