Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: comparing keys and values in different hashes

by fruiture (Curate)
on Mar 03, 2003 at 14:04 UTC ( #240029=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    foreach( keys %hash2 ){
    
    ...
          print "$_ = ",$hash2{$_}*$hash1{$_},"\n";
       }
    }
    
  2. or download this
    my %hash = (
        dog => 11,
        budgie => 1,
       #...
    )
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://240029]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2017-02-20 18:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (301 votes). Check out past polls.