in reply to Re: =~ doesn't work with Quantum::Superpositions
in thread =~ doesn't work with Quantum::Superpositions

As to the perl 6 stuff, BTW, there is a binding operator, :=, but it's nothing like =~; it binds one variable to be an alias of another. =~ is becomming the smart-match operator, ~~, which will do even more then =~, becomming polymorphic on both sides, doing things like array intersection.

In any case, pretty much all operators are overloadable in perl6. However, smart-match is probably smart enough to call the approprate string-/num-/bool-/etc-rafication overloads, as approprate.


Warning: Unless otherwise stated, code is untested. Do not use without understanding. Code is posted in the hopes it is useful, but without warranty. All copyrights are relinquished into the public domain unless otherwise stated. I am not an angel. I am capable of error, and err on a fairly regular basis. If I made a mistake, please let me know (such as by replying to this node).