sub foo { while () { ... } } for (@array_of_numbers) { ... foo() ... }