Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

Perl Programming/Keywords/xor

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

Perl write y Keywords The xor keyword xor is a logical exclusive OR operator that has a very low precedence, but is otherwise equivalent to ^. For logical reasons, it cannot short-circuit. Syntax VALUE xor VALUE Examples The code $a = 5; # 0101 $b = 8; # 1000 print $a xor $b . ", " . $a ^ $b . "\n"; # Returns 5 prints only the first variable, as the first operator is valid: 5 Perl write y Keywords