Front page | perl.perl5.porters |
Postings from February 2000
[ID 20000222.016] perl needs logical xor
Thread Next
From:
Matthew R. Sheahan
Date:
February 22, 2000 21:47
Subject:
[ID 20000222.016] perl needs logical xor
Message ID:
200002230547.AAA10028@puzzle.palace.net
This is a bug report for perl from chaos@crystal.palace.net,
generated with the help of perlbug 1.19 running under perl 5.00503.
-----------------------------------------------------------------
[Please enter your report here]
'foo' ^ '' gives a true value ('foo', to be precise). Because the
bitwise operators are overloaded with magical behavior for strings,
Perl needs a logical XOR operator, ^^, so cases like this can be made
to work without rigamarole.
[Please do not change anything below this line]
-----------------------------------------------------------------
---
Site configuration information for perl 5.00503:
Configured by chaos at Wed Jun 2 16:54:30 EDT 1999.
Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration:
Platform:
osname=bsdos, osvers=4.0.1, archname=i386-bsdos
uname='bsdos void.palace.net 4.0.1 bsdi bsdos 4.0.1 kernel #1: wed jun 2 14:00:26 edt 1999 chaos@void.palace.net:usrsrcsyscompilehyperion i386 '
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef useperlio=undef d_sfio=undef
Compiler:
cc='cc', optimize='-O7', gccversion=2.7.2.1
cppflags=''
ccflags =''
stdchar='char', d_stdstdio=undef, usevfork=false
intsize=4, longsize=4, ptrsize=4, doublesize=8
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
alignbytes=4, usemymalloc=n, prototype=define
Linker and Libraries:
ld='ld', ldflags =''
libpth=/usr/local/lib /usr/shlib /shlib /usr/lib /usr/X11/lib
libs=-ldl -lm
libc=/shlib/libc.so, so=so, useshrplib=true, libperl=libperl.so
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
cccdlflags='-fPIC', lddlflags='-shared -x '
---
@INC for perl 5.00503:
/usr/local/lib/perl5/5.00503/i386-bsdos
/usr/local/lib/perl5/5.00503
/usr/local/lib/perl5/site_perl/5.005/i386-bsdos
/usr/local/lib/perl5/site_perl/5.005
.
---
Environment for perl 5.00503:
HOME=/root
LANG (unset)
LC_CTYPE=ISO8859-1
LD_LIBRARY_PATH (unset)
LOGDIR (unset)
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/contrib/bin:/usr/X11/bin:/usr/local/sbin:/usr/local/bin:/var/www/bin
PERL_BADLANG (unset)
SHELL=/bin/bash
Thread Next
-
[ID 20000222.016] perl needs logical xor
by Matthew R. Sheahan