http://www.perlmonks.org?node_id=273940


in reply to Re: Re: Anyone use "xor" in conditionals?
in thread Anyone use "xor" in conditionals?

I use xor at a few places in the Regexp::Common test suite. I've two variables, one saying whether a regexp matched, and another saying whether the regexp should have matched. The test fails if one variable is true, the other false. Hence, an xor.

Abigail

Replies are listed 'Best First'.
Re: Re: Anyone use "xor" in conditionals?
by Excalibor (Pilgrim) on Jul 14, 2003 at 14:27 UTC

    That's an elegant solution, yessir!

    Best regards,

    --
    our $Perl6 is Fantastic;