Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re: Re: Re: Re: Anyone use "xor" in conditionals?

by Excalibor (Pilgrim)
on Jul 14, 2003 at 19:08 UTC ( #274104=note: print w/replies, xml ) Need Help??

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

Hi there,

I was, of course, talking about the first extended version offered by Abigail:

$ perl -le 'print "T" if ((print "foo" or print "bar") and (not (prin +t "foo" and print "bar"))' foo foo bar

More specifically, I was talking in the case A is false (messier to write with print() as a one liner, left as an exercise for the reader :-)

The point is, once you got the better, downlevel operator, use it if you need it! But no more than that.

best regards,

our $Perl6 is Fantastic;

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://274104]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2017-12-11 09:45 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (288 votes). Check out past polls.