Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: using ref to hash of hash effectively

by alexander_lunev (Pilgrim)
on Dec 27, 2020 at 07:21 UTC ( #11125780=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    
    ...
    } keys %{ $weapons_ref };
    
    print join(' ',$sum_cost, $sum_damage, $sum_armor), '\n';
    
  2. or download this
    157 30 0
    
  3. or download this
    use strict;
    use Data::Dumper;
    ...
    } keys %{ $weapons_ref };
    
    print Dumper($sum_result);
    
  4. or download this
    $VAR1 = {
              'armor' => 0,
              'cost' => 157,
              'damage' => 30
            };
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2021-06-17 16:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)












    Results (84 votes). Check out past polls.

    Notices?