The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

TPath::Test::XOr - implements logical function of tests which returns true iff only one test is true

VERSION

version 0.003

DESCRIPTION

For use by compiled TPath expressions. Not for external consumption.

NOTE: though this is called TPath::Test::XOr and corresponds to the ^ operator, it is really best understood as a one-of or uniqueness test. If it governs two operands, it is logically equivalent to exclusive or. If it governs more than one, it is not necessarily equivalent to evaluating a sequence of pairwise exclusive or constructs. I have written things this way because I figure this is more useful in general and the true exclusive or logic can be recreated easily enough by adding parentheses to group operands.

AUTHOR

David F. Houghton <dfhoughton@gmail.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2013 by David F. Houghton.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.