develooper Front page | perl.perl5.porters | Postings from June 2018

[perl #133301] Evalulation order during concat changed

Thread Next
From:
perlbug-followup
Date:
June 25, 2018 23:34
Subject:
[perl #133301] Evalulation order during concat changed
Message ID:
rt-4.0.24-9968-1529927166-1826.133301-75-0@perl.org
# New Ticket Created by   
# Please include the string:  [perl #133301]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=133301 >


This is a bug report for perl from jraspass@gmail.com,
generated with the help of perlbug 1.40 running under perl 5.26.1.


-----------------------------------------------------------------
I presume this is down to the new multiconcat op, but the following
line has changed behaviour and I couldn't see any mention of it in
the docs.

cat poc.pl; perl poc.pl; perl2 poc.pl
$n=1;print$^V.' '.$n.' '.--$n."\n";
v5.26.1 1 0
v5.28.0 0 0

[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
    category=core
    severity=low
---
Site configuration information for perl 5.26.1:

Configured by jraspass at Thu Feb 22 12:41:06 UTC 2018.

Summary of my perl5 (revision 5 version 26 subversion 1) configuration:

  Platform:
    osname=linux
    osvers=4.15.4-1-arch
    archname=x86_64-linux
    uname='linux ux-015 4.15.4-1-arch #1 smp preempt sat feb 17 16:01:38
utc 2018 x86_64 gnulinux '
    config_args='-de
-Dprefix=/home/jraspass/perl5/perlbrew/perls/perl-5.26.1 -Dman1dir=none
-Dman3dir=none -Accflags= -DNO_MATHOMS    -DPERL_DISABLE_PMC
 -DSILENT_NO_TAINT_SUPPORT        -march=native -O2 -Aldflags=-march=native
-O2 -Aeval:scriptdir=/home/jraspass/perl5/perlbrew/perls/perl-5.26.1/bin'
    hint=recommended
    useposix=true
    d_sigaction=define
    useithreads=undef
    usemultiplicity=undef
    use64bitint=define
    use64bitall=define
    uselongdouble=undef
    usemymalloc=n
    default_inc_excludes_dot=define
    bincompat5005=undef
  Compiler:
    cc='cc'
    ccflags ='-DNO_MATHOMS -DPERL_DISABLE_PMC -DSILENT_NO_TAINT_SUPPORT
-march=native -O2 -fwrapv -fno-strict-aliasing -pipe
-fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2'
    optimize='-O2'
    cppflags='-DNO_MATHOMS -DPERL_DISABLE_PMC -DSILENT_NO_TAINT_SUPPORT
-march=native -O2 -fwrapv -fno-strict-aliasing -pipe
-fstack-protector-strong -I/usr/local/include'
    ccversion=''
    gccversion='7.3.0'
    gccosandvers=''
    intsize=4
    longsize=8
    ptrsize=8
    doublesize=8
    byteorder=12345678
    doublekind=3
    d_longlong=define
    longlongsize=8
    d_longdbl=define
    longdblsize=16
    longdblkind=3
    ivtype='long'
    ivsize=8
    nvtype='double'
    nvsize=8
    Off_t='off_t'
    lseeksize=8
    alignbytes=8
    prototype=define
  Linker and Libraries:
    ld='cc'
    ldflags =' -march=native -O2 -fstack-protector-strong -L/usr/local/lib'
    libpth=/usr/local/lib
/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include-fixed /usr/lib /lib/../lib
/usr/lib/../lib /lib /lib64 /usr/lib64
    libs=-lpthread -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc
-lgdbm_compat
    perllibs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
    libc=libc-2.26.so
    so=so
    useshrplib=false
    libperl=libperl.a
    gnulibc_version='2.26'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs
    dlext=so
    d_dlsymun=undef
    ccdlflags='-Wl,-E'
    cccdlflags='-fPIC'
    lddlflags='-shared -O2 -L/usr/local/lib -fstack-protector-strong'

Locally applied patches:
    Devel::PatchPerl 1.48

---
@INC for perl 5.26.1:

/home/jraspass/perl5/perlbrew/perls/perl-5.26.1/lib/site_perl/5.26.1/x86_64-linux
    /home/jraspass/perl5/perlbrew/perls/perl-5.26.1/lib/site_perl/5.26.1
    /home/jraspass/perl5/perlbrew/perls/perl-5.26.1/lib/5.26.1/x86_64-linux
    /home/jraspass/perl5/perlbrew/perls/perl-5.26.1/lib/5.26.1

---
Environment for perl 5.26.1:
    HOME=/home/jraspass
    LANG=en_GB.UTF-8
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)

PATH=/home/jraspass/perl5/perlbrew/bin:/home/jraspass/perl5/perlbrew/perls/perl-5.26.1/bin:/home/jraspass/go/bin:/home/jraspass/.rakudup/install/bin:/home/jraspass/.rakudup/site/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
    PERLBREW_HOME=/home/jraspass/.perlbrew
    PERLBREW_MANPATH=/home/jraspass/perl5/perlbrew/perls/perl-5.26.1/man

PERLBREW_PATH=/home/jraspass/perl5/perlbrew/bin:/home/jraspass/perl5/perlbrew/perls/perl-5.26.1/bin
    PERLBREW_PERL=perl-5.26.1
    PERLBREW_ROOT=/home/jraspass/perl5/perlbrew
    PERLBREW_SHELLRC_VERSION=0.82
    PERLBREW_VERSION=0.82
    PERL_BADLANG (unset)
    SHELL=/bin/bash


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About