On Fri, Jun 06, 2025 at 07:27:56PM +0100, Gavin Smith wrote:
> I had a breakthrough when I realised that the referenced parent element,
> the $previous_ending_container->{'contents'}->[$i]->{'parent'}, was the 
> before_item
> element that was being overwritten.  What if the assignment didn't just 
> change the
> value for 'parent' in the hash 
> (%{$previous_ending_container->{'contents'}->[$i]}),
> but modified the object that was referenced?

To clarify this point, it is not that the referenced hash itself is modified,
but the reference to that hash is overwritten, and that overwritten reference
is shared by another part of the data structure.
 

Reply via email to