in reply to Re: Updating 1 array affects the other array
in thread Updating 1 array affects the other array
This portion of code is where I have declared the arrays and just before I encounter the problem. Basically, what I am trying to do is grep unique column pair in a table(array of array) and store them into a new table. I managed to get what I wanted (e.g. the unique pairs), but I ca'nt quite see how it ended up cross-referencing to another array. Thanks!my %seen_values; my @unique_terminal_id = grep { !($seen_values{$_->[4]}++) } @temp_ope +n_single; my %seen_values; my @unique_manufacturer_model = grep { !($seen_values{$_->[9]}{$_->[10 +]}++) } @unique_terminal_id; my %seen_values; my @unique_manufacturer_model_version = grep { !($seen_values{$_->[9]} +{$_->[10]}{$_->[11]}++) } @unique_terminal_id;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Updating 1 array affects the other array
by Anonymous Monk on Sep 02, 2008 at 08:42 UTC |