Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^3: map problem

by ikegami (Pope)
on Mar 09, 2012 at 22:34 UTC ( #958799=note: print w/replies, xml ) Need Help??


in reply to Re^2: map problem
in thread map problem

The code with the semi-colon

  • has an unambiguous effect (not a valid hash constructor),
  • has an unambiguous purpose (coder obviously doing something to appease the compiler), and
  • is idiomatic.

{ ("x$_" => 1) } is still a valid hash constructor, and it's not clear that the parens are required, so it's not as clear as it could be.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://958799]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2017-12-16 17:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (457 votes). Check out past polls.

    Notices?