< Perl Programming
In addition to the basic control structures, Perl allows the use of statement modifiers. The statement modifier is placed at the end of the statement that it modifies. Note that the do {…} until (…) and do {…} while (…) loop constructs are actually statement modifiers. The complete list of modifiers is:
- statement if expression
- statement unless expression
- statement while expression
- statement until expression
- statement foreach list
Unlike BASIC-PLUS, statement modifiers in Perl cannot be stacked.
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.