Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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?
[usemodperl]: yes, in script too, problem is find_modules but only in a script
[usemodperl]: one liner works, nothing from script, weird

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2018-06-23 12:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (125 votes). Check out past polls.

    Notices?