Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: Using map to create a hash/bag from an array

by mrborisguy (Hermit)
on Dec 18, 2005 at 04:22 UTC ( #517556=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $bag->{$_}++ for @items;
      # instead of
    map {$bag->{$_}++} @items;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2015-07-04 18:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls