Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perl needs logical xor #1211

Closed
p5pRT opened this issue Feb 22, 2000 · 2 comments
Closed

perl needs logical xor #1211

p5pRT opened this issue Feb 22, 2000 · 2 comments

Comments

@p5pRT
Copy link

p5pRT commented Feb 22, 2000

Migrated from rt.perl.org#2194 (status was 'resolved')

Searchable as RT2194$

@p5pRT
Copy link
Author

p5pRT commented Feb 22, 2000

From chaos@puzzle.palace.net

Created by chaos@crystal.palace.net

'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.

Perl Info


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


@p5pRT
Copy link
Author

p5pRT commented Feb 23, 2000

From [Unknown Contact. See original ticket]

"Matthew R. Sheahan" <chaos@​puzzle.palace.net> wrote

'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.

Perl already has a logical xor operator. See "xor" in perlop.

Mike Guy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant