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;
In reply to Re^5: How to create a hash whose values are undef?
by cdarke
in thread How to create a hash whose values are undef?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |