in reply to Re: Break an array. I think.
in thread Break an array. I think.
@datan = ("1","2","3","4","5","6"); my $i = 0; while ( (my @x = @datan[(0+$i)..(2+$i)]) && $i<$#datan ) { print join(" ",@x), "\n"; $i+=3; } print "l: @datan";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Break an array. I think.
by Roy Johnson (Monsignor) on Nov 22, 2005 at 15:15 UTC |