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
In reply to Re: Deleting hash entry
by johngg
in thread Deleting hash entry
by nandymamith
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |