There's more than one way to do things | |
PerlMonks |
Re: Peculiar hash behaviorby AnomalousMonk (Archbishop) |
on Oct 02, 2021 at 07:16 UTC ( [id://11137196]=note: print w/replies, xml ) | Need Help?? |
For the $h1{(@h)} expression, note that an @array evaluated in scalar context yields the number of elements in the array. In the $h1{(@h)} expression, the @h array of three elements (used as a key/string) is evaluated in scalar context (update: so 3 → "3"). Give a man a fish: <%-{-{-{-<
In Section
Seekers of Perl Wisdom
|
|