develooper Front page | perl.perl5.porters | Postings from September 2012

[perl #114884] perl -le '$_="abcdefg123456"; s/(?<=...\G)?(\d)/($1)/; print'

Thread Previous | Thread Next
From:
perlbug-followup
Date:
September 13, 2012 10:29
Subject:
[perl #114884] perl -le '$_="abcdefg123456"; s/(?<=...\G)?(\d)/($1)/; print'
Message ID:
rt-3.6.HEAD-11172-1347556498-694.114884-75-0@perl.org
# New Ticket Created by  (Dean Inada) 
# Please include the string:  [perl #114884]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=114884 >


This is a bug report for perl from dmi@questrel.com,
generated with the help of perlbug 1.39 running under perl 5.12.3.


-----------------------------------------------------------------
[Please describe your issue here]

perl5.10.1 -le '$_="abcdefg123456"; s/(?<=...\G)?(\d)/($1)/; print'
abcdefg(1)23456

perl5.12.3 -le '$_="abcdefg123456"; s/(?<=...\G)?(\d)/($1)/; print'
abcdefg(1)fg123456

perl5.16.0 -le '$_="abcdefg123456"; s/(?<=...\G)?(\d)/($1)/; print'
abcdefg(1)fg123456

The result from 5.10.1 is what I expected
I did not find mention of the change in perldelta

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

Configured by _mdnsresponder at Fri Jan 13 14:26:39 PST 2012.

Summary of my perl5 (revision 5 version 12 subversion 3) configuration:
    
   Platform:
     osname=darwin, osvers=11.0, archname=darwin-thread-multi-2level
     uname='darwin bow.apple.com 11.0 darwin kernel version 11.2.0: mon dec 5 14:22:03 pst 2011; root:xnu-1699.24.81~1release_x86_64 x86_64 '
     config_args='-ds -e -Dprefix=/usr -Dccflags=-g  -pipe  -Dldflags= -Dman3ext=3pm -Duseithreads -Duseshrplib -Dinc_version_list=none -Dcc=llvm-gcc-4.2'
     hint=recommended, useposix=true, d_sigaction=define
     useithreads=define, usemultiplicity=define
     useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
     use64bitint=define, use64bitall=define, uselongdouble=undef
     usemymalloc=n, bincompat5005=undef
   Compiler:
     cc='llvm-gcc-4.2', ccflags ='-arch x86_64 -arch i386 -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -fstack-protector -I/usr/local/include',
     optimize='-Os',
     cppflags='-g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -fstack-protector -I/usr/local/include'
     ccversion='', gccversion='4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)', gccosandvers=''
     intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
     d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
     ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
     alignbytes=8, prototype=define
   Linker and Libraries:
     ld='llvm-gcc-4.2 -mmacosx-version-min=10.7.3', ldflags ='-arch x86_64 -arch i386 -fstack-protector -L/usr/local/lib'
     libpth=/usr/local/lib /usr/lib
     libs=-ldbm -ldl -lm -lutil -lc
     perllibs=-ldl -lm -lutil -lc
     libc=, so=dylib, useshrplib=true, libperl=libperl.dylib
     gnulibc_version=''
   Dynamic Linking:
     dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
     cccdlflags=' ', lddlflags='-arch x86_64 -arch i386 -bundle -undefined dynamic_lookup -L/usr/local/lib -fstack-protector'

Locally applied patches:
     /Library/Perl/Updates/<version> comes before system perl directories
     installprivlib and installarchlib points to the Updates directory

---
@INC for perl 5.12.3:
     /Library/Perl/5.12/darwin-thread-multi-2level
     /Library/Perl/5.12
     /Network/Library/Perl/5.12/darwin-thread-multi-2level
     /Network/Library/Perl/5.12
     /Library/Perl/Updates/5.12.3
     /System/Library/Perl/5.12/darwin-thread-multi-2level
     /System/Library/Perl/5.12
     /System/Library/Perl/Extras/5.12/darwin-thread-multi-2level
     /System/Library/Perl/Extras/5.12
     .

---
Environment for perl 5.12.3:
     DYLD_LIBRARY_PATH (unset)
     HOME=/Users/dmi
     LANG=en_US.ISO8859-1
     LANGUAGE (unset)
     LD_LIBRARY_PATH (unset)
     LOGDIR (unset)
     PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
     PERLDOC_PAGER=less -isX
     PERL_BADLANG (unset)
     SHELL=/bin/bash


Thread Previous | 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