in reply to Re^3: Hash initialization works, but why?
in thread Hash initialization works, but why?

One more tidbit. The variable @foo is an array, but the expression @foo evaluates to a scalar or a list, depending on context.
my $num_elemens = @foo; # @foo evaluates to a scalar. my ($first, $second) = @foo; # @foo evaluates to a list.