#!/usr/bin/perl use Quantum::Superpositions; $\ = $/; # Create a disjunction of 'a' and 'b'. $dis = any( 'a', 'b' ); print $dis; print "=~: ",$dis =~ /\bb\b/; # true print "eq: ",$dis eq 'b'; # true #### q{<} => sub { qblop(swap(@_), sub { $_[0] < $_[1] })}, q{<=>} => sub { qblop(swap(@_), sub { $_[0] <=> $_[1] })}, ... all kinds of other tests q{~} => sub { $_[0]->quop(sub { ~$_[0] })},