in reply to Re: Re: eval on hash (use \\)in thread eval on hash
You need to delay the last deref:
my @keys= qw( key1 key2 key3 A ); my $last= pop(@keys); delete derefHashTree($new_hash,@keys)->{$last}; [download]