Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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 perusing the Monastery: (4)
As of 2018-07-18 16:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (393 votes). Check out past polls.

    Notices?