What I meant is something like this, in which case you can have any number of arrays with any number of rows:
my $all_val = []; for my $aref (@$array_ref_x) { my $i = 0; for my $row (@$aref) { $all_val->[$i] = '' unless defined $all_val->[$i]; # for 'use + warnings' $all_val->[$i] = $row if $row gt $all_val->[$i]; $i++; } }
In reply to Re^3: Keeping Unique Elements in Array!
by almut
in thread Keeping Unique Elements in Array!
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |