Sam Ruby writes: > Mike Guy wrote: > > > >Perl5 C<xor> always returns a "standard" boolean value, i.e. > >dualvar(0, '') or dualvar(1, '1'). Perl6/Parrot should do the same > >thing. > > Try: > > perl -le "print 'day' xor 'night'" > > On the version of Perl I have installed, I get "day" as the result.
Odd, since xoring two true values should give a false one. Remember the precedence of xor. This is parsed: perl -le "print('day') xor 'night'" Luke