Write briefly about control statements in PERL with example
Answers
Answered by
1
Control statements
An if statement decides whether to execute another statement, or decides which of two statements to execute.
A loop decides how many times to execute another statement. There are three kinds of loops: while loops test whether a condition is true before executing the controlled statement.
Example
while(condition) {
statement(s);
}
Attachments:
Similar questions