J
John
Hi gurus,
If I want to walk the colunms on one array of array, How do you do
that?
This is my case
@a = (
[qw/a b c d e/],
[qw/1 b m e f/],
[qw/c b n g h/],
[qw/j b l z y/]
),
and I want to check all values on a row to see if are the same. (on
this case all for column 1).
How I could do that? I always can transpose the array and operate over
all the elements in the row, but I think that must be a way to work
over the columns, without change the original array.
Any idea.
Thanks a million for your help
J
If I want to walk the colunms on one array of array, How do you do
that?
This is my case
@a = (
[qw/a b c d e/],
[qw/1 b m e f/],
[qw/c b n g h/],
[qw/j b l z y/]
),
and I want to check all values on a row to see if are the same. (on
this case all for column 1).
How I could do that? I always can transpose the array and operate over
all the elements in the row, but I think that must be a way to work
over the columns, without change the original array.
Any idea.
Thanks a million for your help
J