http://qs321.pair.com?node_id=11137618


in reply to Hash Curious

choroba already pointed you to perldata#Slices ...

But:

> How does the hash get assigned by using the list symbol on it? ...

> ... @b{@f}=();

It's the same logic with $b{@f} = "value" where the LHS is a $scalar.

It's the curlies {...} which qualify b as hash.

Now with the @array sigil it becomes a list @b{@f}=();

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery