December 2012
Intermediate to advanced
888 pages
48h 24m
English
A loop is a way to repeat a program action multiple times. A simple example is a countdown timer that performs a task (waiting for one second) 300 times before telling you that your egg is done boiling.
Looping constructs (also known as control structures) can be used to iterate a block of code as long as certain conditions apply, or while the code steps through (evaluates) a list of values, perhaps using that list as arguments.
Perl has four looping constructs: for, foreach, while, and until.
Read now
Unlock full access