Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: stuck in a hash

by neniro (Priest)
on Aug 04, 2005 at 22:49 UTC ( [id://481037]=note: print w/replies, xml ) Need Help??


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;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-04-25 15:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found