in reply to Re^4: How to create a hash whose values are undef?
in thread How to create a hash whose values are undef?
No need for the x operator. This sets the first value to undef, the others are unspecified so are set to undef as well.my %hash; @hash{@keys} = undef;
|
|---|