You need to delay the last deref:
- tyemy @keys= qw( key1 key2 key3 A ); my $last= pop(@keys); delete derefHashTree($new_hash,@keys)->{$last};
In reply to Re^3: eval on hash (delay one)
by tye
in thread eval on hash
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |