456 | | print join(", ", &slice(\@array, 0, $#array, $step)), "\n"; |
457 | | print join(", ", &slice(\@array, 1, $#array, $step)), "\n"; |
458 | | print join(", ", &slice(\@array, 2, $#array, $step)), "\n"; |
| 458 | for (0 .. 10) { |
| 459 | print join(", ", &slice(\@array, $_, $#array, $step)), "\n"; |
| 460 | } |
470 | 475 | 100, 103, 106, 109, 112, 115, 118, 121, 124, 127, 130, 133, 136, 139, 142, 145, 148 |
471 | 476 | 101, 104, 107, 110, 113, 116, 119, 122, 125, 128, 131, 134, 137, 140, 143, 146, 149 |
472 | | 102, 105, 108, 111, 114, 117, 120, 123, 126, 129, 132, 135, 138, 141, 144, 147, 150 |
473 | | }}} |
| 477 | 102, 105, 108, 111, 114, 117, 120, 123, 126, 129, 132, 135, 138, 141, 144, 147 |
| 478 | 103, 106, 109, 112, 115, 118, 121, 124, 127, 130, 133, 136, 139, 142, 145, 148 |
| 479 | 104, 107, 110, 113, 116, 119, 122, 125, 128, 131, 134, 137, 140, 143, 146, 149 |
| 480 | 105, 108, 111, 114, 117, 120, 123, 126, 129, 132, 135, 138, 141, 144, 147 |
| 481 | 106, 109, 112, 115, 118, 121, 124, 127, 130, 133, 136, 139, 142, 145, 148 |
| 482 | 107, 110, 113, 116, 119, 122, 125, 128, 131, 134, 137, 140, 143, 146, 149 |
| 483 | 108, 111, 114, 117, 120, 123, 126, 129, 132, 135, 138, 141, 144, 147 |
| 484 | 109, 112, 115, 118, 121, 124, 127, 130, 133, 136, 139, 142, 145, 148 |
| 485 | 110, 113, 116, 119, 122, 125, 128, 131, 134, 137, 140, 143, 146, 149 |
| 486 | }}} |