in reply to Re: using "my" in hash slice
in thread using "my" in hash slice
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)'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: using "my" in hash slice
by PodMaster (Abbot) on Jun 18, 2004 at 11:07 UTC |