Help for this page
This slightly more ornate example adds up the elements of an array: sum = 0; for( i=0; i<n; i++) sum = sum + array[i];
For Loops Perl's C-style "for" loop works like the corresponding "while" +loop; ... } continue { $i++; }