Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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 having an uproarious good time at the Monastery: (7)
As of 2014-08-29 21:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (289 votes), past polls