in reply to Deleting hash entry

Note that braces - { abc => 123, def => 456 } - create a reference to an anonymous hash which should be assigned to a scalar, e.g. my $hash = { abc => 123, def => 456 };. If you want an actual hash use parentheses - my %hash = ( abc => 123, def => 456 ); - instead.

Cheers,

JohnGG