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: ifswitch and unless
  • Loop statements which include: do-until, do-while, for, foreachuntil and while