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

p5pRT opened this issue Dec 8, 1999 · 2 comments

postfix op and defined #921

p5pRT opened this issue Dec 8, 1999 · 2 comments


Copy link

p5pRT commented Dec 8, 1999

Migrated from (status was 'resolved')

Searchable as RT1864$

Copy link

p5pRT commented Dec 8, 1999


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.

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:
    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
    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/, so=so, useshrplib=true,
  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:

Environment for perl 5.00563:
    LANGUAGE (unset)
    LOGDIR (unset)
    PERL_BADLANG (unset)

Copy link

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
None yet

No branches or pull requests

1 participant