http://qs1969.pair.com?node_id=481037


in reply to stuck in a hash

I tried Quantum::Superpositions for this - and it seems to work fine:
#!/usr/bin/perl use strict; use warnings; use Quantum::Superpositions; use Data::Dumper; my %colors = ( red => '#ff0000', blue => '#0000ff', green => '#00ff00', yellow => '#ffff00', ); my @sel_col = qw/ red green /; my @missing = eigenstates((any keys %colors) ne (all @sel_col)); print Dumper \@missing;