in reply to Traverse and calculate in 2D array
I'd say your data structure is not ideal, it's surely much more usefull to improve the structure than the program working on it.
while( @data > 1 ){ my $i = shift @data; my $o = shift @data; printf "%d %d %d\n", $i->[0] - $o->[0], $i->[2] , $o->[2]; }
This will clobber your array.
update: sorry, PRE=>CODE
--
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Array
by Anonymous Monk on Nov 27, 2002 at 19:20 UTC | |
by fruiture (Curate) on Nov 27, 2002 at 19:44 UTC |