in reply to whats wrong with this code?
for completeness two other approaches:
use strict; use warnings; my @array= 1..10; do { print "@array\n" } while defined shift @array; @array= 1..10; for (1..@array) { print "@array\n"; shift @array; }
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: whats wrong with this code?
by afoken (Chancellor) on Jan 18, 2017 at 13:06 UTC | |
by LanX (Saint) on Jan 18, 2017 at 13:08 UTC |