Thanks chromatic, it looks like an elegant solution. But I'm still rather new at things like map and grep. I've been trying hard to make your code work, but am reaching the head-banging stage.
I did add the final right curly bracket to the "delete" line:
which prints:delete @keep_ids{ map { $_->{id} } @AoH_one }; print Dumper (%keep_ids);
$VAR1 = '3'; $VAR2 = 1;
So, I have the id of the hash I want to keep, but I'm not sure what is happening on the grep line. Also, I'm not quite sure of how to build the AoH I need for my tmpl_loop from just knowing that resulting id.
I'm going to continue to work on it, but in the meantime, if another monk comes along that can fill in some of the details, I'm very teachable right now ;^). Thanks!
In reply to Re: Re: Splice of ref to AoH not removing element
by bradcathey
in thread Splice of ref to AoH not removing element
by bradcathey
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |