Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Expression form of map or grep

by jcb (Parson)
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 romping around the Monastery: (3)
As of 2021-06-12 22:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)












    Results (53 votes). Check out past polls.

    Notices?