in reply to Re: mashing two arrays
in thread mashing two arrays
my %h = (); $h{$_->[0]} = [$_->[1], undef,] for @a1; $h{$_->[0]}[1] = $_->[1] for @a2; my @arr = map {[$_, @{$h{$_}}]} sort keys %h;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: mashing two arrays
by ikegami (Patriarch) on Jan 19, 2007 at 18:06 UTC |