Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
foreach $a(keys %test_hash) { if(not exists($hash1{$a}) && not exists($hash2{$a}) && not exists( +$hash3{$a}) && not exists($hash4{$a})) { print $test_hash{$a}; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Check if a key exists in several hashes at once
by kennethk (Abbot) on Nov 12, 2010 at 22:22 UTC | |
by eyepopslikeamosquito (Archbishop) on Nov 13, 2010 at 01:36 UTC | |
|
Re: Check if a key exists in several hashes at once
by ikegami (Patriarch) on Nov 12, 2010 at 23:21 UTC | |
|
Re: Check if a key exists in several hashes at once
by Tanktalus (Canon) on Nov 13, 2010 at 04:16 UTC | |
|
Re: Check if a key exists in several hashes at once
by Anonymous Monk on Nov 12, 2010 at 23:22 UTC | |
|
Re: Check if a key exists in several hashes at once
by TomDLux (Vicar) on Nov 13, 2010 at 02:55 UTC |