Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Expression form of map or grep

by jcb (Vicar)
on Jul 12, 2020 at 03:37 UTC ( #11119196=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my %index = map { $_->key => $_ } @objects;
    
  2. or download this
    my %index = map (($_->key => $_), @objects);
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (3)
As of 2020-11-01 01:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (291 votes). Check out past polls.

    Notices?