Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: Hints Towards Writing a Module with New Operators

by JavaFan (Canon)
on Dec 20, 2009 at 01:00 UTC ( #813572=note: print w/replies, xml ) Need Help??


in reply to Re: Hints Towards Writing a Module with New Operators
in thread Hints Towards Writing a Module with New Operators

!($a xor $b)

Replies are listed 'Best First'.
Re^3: Hints Towards Writing a Module with New Operators
by BrowserUk (Pope) on Dec 20, 2009 at 01:03 UTC

    Or

    1. .NEQV. ~= $a ^ $b
    2. .EQV. ~= !($a ^ $b)

    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.
      Those aren't the same:
      !(2 xor 1); # => 1 !(2 ^ 1); # => 0

        You're right of course.


        Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
        "Science is about questioning the status quo. Questioning authority".
        In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (3)
As of 2020-05-27 04:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (152 votes). Check out past polls.

    Notices?