icon Top 9 categories map      RocketAware > Perl >

Logical or and Exclusive Or

Tips: Browse or Search all pages for efficient awareness of Perl functions, operators, and FAQs.



Home

Search Perl pages


Subjects

By activity
Professions, Sciences, Humanities, Business, ...

User Interface
Text-based, GUI, Audio, Video, Keyboards, Mouse, Images,...

Text Strings
Conversions, tests, processing, manipulation,...

Math
Integer, Floating point, Matrix, Statistics, Boolean, ...

Processing
Algorithms, Memory, Process control, Debugging, ...

Stored Data
Data storage, Integrity, Encryption, Compression, ...

Communications
Networks, protocols, Interprocess, Remote, Client Server, ...

Hard World
Timing, Calendar and Clock, Audio, Video, Printer, Controls...

File System
Management, Filtering, File & Directory access, Viewers, ...

    

Logical or and Exclusive Or

Binary ``or'' returns the logical disjunction of the two surrounding expressions. It's equivalent to || except for the very low precedence. This means that it short-circuits: i.e., the right expression is evaluated only if the left expression is false.

Binary ``xor'' returns the exclusive-OR of the two surrounding expressions. It cannot short circuit, of course.


Source: Perl operators and precedence
Copyright: Larry Wall, et al.
Next: C Operators Missing From Perl

Previous: Logical And



(Corrections, notes, and links courtesy of RocketAware.com)


[Overview Topics]

Up to: Binary math




Rapid-Links: Search | About | Comments | Submit Path: RocketAware > Perl > perlop/Logical_or_and_Exclusive_Or.htm
RocketAware.com is a service of Mib Software
Copyright 2000, Forrest J. Cavalier III. All Rights Reserved.
We welcome submissions and comments