diotalevi has asked for the wisdom of the Perl Monks concerning the following question:
I tried matching against a disjunction and got the wrong results. Where is the problem - my understanding or in Q::S?
use Quantum::Superpositions; $\ = $/; # Create a disjunction of 'a' and 'b'. $dis = any( 'a', 'b' ); print "=~: ",$dis =~ /^b$/; # false print "eq: ",$dis eq 'b'; # true
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: =~ doesn't work with Quantum::Superpositions
by DrManhattan (Chaplain) on Apr 20, 2003 at 15:57 UTC | |
|
Re: =~ doesn't work with Quantum::Superpositions
by Limbic~Region (Chancellor) on Apr 20, 2003 at 16:30 UTC | |
by theorbtwo (Prior) on Apr 20, 2003 at 18:49 UTC |