in reply to Why does ‘keys’ need a named hash?

Because the second map just returns a list and keys has no use for just a list. The => operator is sometimes called the fat comma. Its use does not make something a hash.

Replies are listed 'Best First'.
Re^2: Why does 'keys' need a named hash?
by kennethk (Abbot) on Apr 05, 2017 at 15:17 UTC
    The relevant documentation: Comma Operator in perlop.

    #11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.