in reply to Re^2: How to merge two arrays within the hash of arrays based on unique name.
in thread How to merge two arrays within the hash of arrays based on unique name.
Hi Rolf, your code works charm, thank you so much. Finding difficult to understand the code, please add the comment especially for the copied code lines below, would be very helpful.
my $target = \ $tmp{$record->{name}}; $$target->{name} = $record->{name}; $$target->{_order} //= $order++; delete $_->{_order} for @new_sorted_data;
Thanks again.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How to merge two arrays within the hash of arrays based on unique name.
by LanX (Saint) on Jul 16, 2020 at 18:51 UTC | |
by LanX (Saint) on Jul 16, 2020 at 21:36 UTC | |
by Sami_R (Sexton) on Jul 17, 2020 at 10:25 UTC | |
by LanX (Saint) on Jul 17, 2020 at 13:17 UTC |