Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^5: Need advice on checking two hashes values and keys

by aaron_baugher (Curate)
on Jun 05, 2015 at 02:01 UTC ( [id://1129150]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $hash{$italian}[1] = $french;
  2. or download this
    # Italian -> Spanish input file with 1 & 3
    uno = uno 
    ...
              due => [ undef, 'deux' ],
              tre => [ 'tres','trois' ],
    );
    
  3. or download this
    for my $key (keys %hash){
      if( $hash{$key}[0] and $hash{$key}[1] ){  # both are present
    ...
        print $out1 "$key => ", join( ' , ', @{$hash{$key}}), "\n";
      }
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (7)
As of 2024-04-18 15:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found