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

postfix op and defined #921

Closed
p5pRT opened this issue Dec 8, 1999 · 2 comments
Closed

postfix op and defined #921

p5pRT opened this issue Dec 8, 1999 · 2 comments

Comments

@p5pRT
Copy link

p5pRT commented Dec 8, 1999

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

Searchable as RT1864$

@p5pRT
Copy link
Author

p5pRT commented Dec 8, 1999

From jarausch@numa1.igpm.rwth-aachen.de

The perlop manpage says
"++" and "--" work as in C. That is, if placed before a
  variable, they increment or decrement the variable before
  returning the value, and if placed after, increment or
  decrement the variable after returning the value.

but
print "is defined\n" if defined($H{'x'}++);

# prints is defined
What did I miss ?

P.S. I know that I can do without 'defined' here even with -w,
  so it's not urgent.

Perl Info


Site configuration information for perl 5.00563:

Configured by jarausch at Mon Dec  6 10:44:43 CST 1999.

Summary of my perl5 (revision 5.0 version 5 subversion 63) configuration:
  Platform:
    osname=irix, osvers=6.5, archname=IP26-irix
    uname='irix64 numa1 6.5 07151439 ip26 '
    config_args='-Dcc=cc -Dprefix=/usr/LOCAL -Dlocincpth=/usr/LOCAL/include -Dloclibpth=/usr/LOCAL/lib'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef useperlio=undef d_sfio=undef
    use64bits=undef usemultiplicity=undef
  Compiler:
    cc='cc', optimize='-O3 -OPT:space=on -mips4', gccversion=
    cppflags='-D_BSD_TYPES -D_BSD_TIME -I/usr/LOCAL/include -DLANGUAGE_C'
    ccflags ='-D_BSD_TYPES -D_BSD_TIME -I/usr/LOCAL/include -DLANGUAGE_C'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    alignbytes=8, usemymalloc=y, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -Wl,-woff,84 -L/usr/LOCAL/lib'
    libpth=/usr/LOCAL/lib /usr/lib32 /lib32
    libs=-lgdbm -lm -lc
    libc=/usr/lib32/libc.so, so=so, useshrplib=true, libperl=libperl.so
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='  -Wl,-rpath,/usr/LOCAL/lib/perl5/5.00563/IP26-irix/CORE'
    cccdlflags='-Wl,-rpath,/usr/LOCAL/lib/perl5/5.00563/IP26-irix/CORE', lddlflags='-shared -L/usr/LOCAL/lib'

Locally applied patches:
    


@INC for perl 5.00563:
    /usr/LOCAL/lib/perl5/5.00563/IP26-irix
    /usr/LOCAL/lib/perl5/5.00563
    /usr/LOCAL/lib/site_perl/5.00563/IP26-irix
    /usr/LOCAL/lib/site_perl
    .


Environment for perl 5.00563:
    HOME=/usr/people/jarausch
    LANG=C
    LANGUAGE (unset)
    LD_LIBRARY_PATH=/usr/people/jarausch/ZIP/Netscape/package
    LOGDIR (unset)
    PATH=.:/usr/people/jarausch/bin:/usr/PRIVATE/bin:/usr/LOCAL/bin:/usr/LOCAL/teTeX/bin:/usr/bin:/usr/java/bin:/usr/bsd:/bin:/usr/bin/X11:/usr/local/bin:/usr/local/bin/X11:/usr/sbin:/usr/demos/bin
    PERL_BADLANG (unset)
    SHELL=/bin/zsh

@p5pRT
Copy link
Author

p5pRT commented Dec 11, 2000

From The RT System itself

Order of operations is
undefined for structures
used mainly for their
side effects.

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