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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Hash Curious
by eyepopslikeamosquito (Archbishop) on Oct 16, 2021 at 04:36 UTC | |
by LanX (Saint) on Oct 16, 2021 at 09:09 UTC | |
by LanX (Saint) on Oct 16, 2021 at 10:33 UTC | |
by gfldex (Initiate) on Oct 18, 2021 at 19:46 UTC |
In Section
Seekers of Perl Wisdom