in reply to Re: Removing duplicates in Array of Array
in thread Removing duplicates in Array of Array
But I discover that updating @unique_manufacturer_model also changes @unique_manufacturer_model_version. I was told that this is due to the fact that I am storing reference (cross-referencing trap). I was told to use Storeable(dclone), but I ca'nt figure out how to apply. So I was thinking if there could be a longer (inefficient) way of getting around this.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: Removing duplicates in Array of Array
by GrandFather (Saint) on Sep 04, 2008 at 04:58 UTC | |
by parv (Parson) on Sep 04, 2008 at 05:48 UTC | |
by GrandFather (Saint) on Sep 04, 2008 at 06:49 UTC | |
by iphony (Acolyte) on Sep 04, 2008 at 06:02 UTC |