Chapter 10. Looping facilities

10.1

Looping facilities in the Shell and Perl

331

10.2

Looping with while/until

333

10.3

Looping with do while/until

338

10.4

Looping with foreach

340

10.5

Looping with for

345

10.6

Using loop-control directives

349

10.7

The CPAN’s select loop for Perl

355

10.8

Summary

360

Recapitulation. Repetition! Redundancy!! The redundancy of repetition. The repetitive monotony of redundancy. The monotony of endlessly repeating a mundane task—repetitively!

Repetition is annoying—and dangerous. It can drive people crazy! Fortunately, civilization has evolved to the point where we have unfeeling mechanical agents who exist just to perform an endless variety of mind-numbingly repetitive tasks for us. The ones we call computers can process operations repetitively ...

Get Minimal Perl: For UNIX and Linux People now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.