Help for this page

Select Code to Download


  1. or download this
    for my $key ( keys %one_hash ) {
        next if ( exists( $other_hash{$key} ));
    
        # now do something with this $key, which exists only in %one_hash.
    +..
    }
    
  2. or download this
    for my $key ( keys %doublet ) {
        if ( exists( $triplet{$key} )) {  # need to check values
    ...
        #       OR if $triplet{$key} is not equivalent to $doublet{$key}
        print "$key\n";
    }