Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: strange map behavior

by ikegami (Patriarch)
on Feb 25, 2008 at 17:27 UTC ( [id://670055]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my %h = map {; $_ => $_ } @arr;
                 ^
                 |
           force a block.
    
  2. or download this
    my @a = map +{ $_ => ord($_) }, @arr;
                ^
                |
          force a hash
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-04-18 18:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found