If you had written @a{(undef) } = () you'd have gotten the same result.But (undef) and () are the different things. The first one is not empty list, but the second one is empty.
perl -wle 'use Data::Dumper; my %a; @a{()} = (); print Dumper(\%a)'
In reply to Re^2: using "my" in hash slice
by ccn
in thread using "my" in hash slice
by ccn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |