Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

'xor' operator is not a sibling to 'or' and 'and'?

by rsFalse (Chaplain)
on Dec 18, 2019 at 20:29 UTC ( [id://11110345]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -l
    
    ...
    
    push @_, $_ xor print $_ for 'a' .. 'b';
    print @_;
    
  2. or download this
    Useless use of logical xor in void context at ./perlmonks_xor_vs_or_an
    +d.pl line 6.
    a
    b
    ab
    
  3. or download this
    #!/usr/bin/perl -l
    
    ...
        ( 2 or 3 ),
        ( 2 xor 3 ),
        ;
    
  4. or download this
    [3]
    [2]
    []
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://11110345]
Approved by GrandFather
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (7)
As of 2024-04-19 08:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found