Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Why does 'keys' need a named hash?

by huck (Prior)
on Apr 05, 2017 at 12:03 UTC ( [id://1187095]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1187095]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2024-04-26 00:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found