Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 romping around the Monastery: (5)
As of 2016-09-28 00:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (516 votes). Check out past polls.