eatr
Technical User
- Jan 20, 2006
- 48
I want to be able to move through the columns of a dynamic (size varies --nothing constant) 2 dimensional array, making calculations and then changes to the values. The colums would be accessed as pairs.
for example
0 1 2 3 4 5 6 7 ...
a 123 000 ......................
b 456 001 ......................
c 789 012 .......................
In pairs, I want to work first with 1,3, then 2,4 etc.
I've tried embedding foreach loops:
for my $l (1,3) {
for my $m (2,4) {
....
but can't get it to work
suggestions please
for example
0 1 2 3 4 5 6 7 ...
a 123 000 ......................
b 456 001 ......................
c 789 012 .......................
In pairs, I want to work first with 1,3, then 2,4 etc.
I've tried embedding foreach loops:
for my $l (1,3) {
for my $m (2,4) {
....
but can't get it to work
suggestions please