Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^3: map problem

by ikegami (Patriarch)
on Mar 09, 2012 at 22:34 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://958799]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2024-03-29 12:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found