Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: stuck in a hash

by neniro (Priest)
on Aug 04, 2005 at 22:49 UTC ( #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? | Other CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2023-01-30 12:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?