develooper Front page | perl.perl5.porters | Postings from May 2003

[perl #22351] perl bug with 'e' substitution modifier

Thread Next
From:
perlbug-followup
Date:
May 29, 2003 05:24
Subject:
[perl #22351] perl bug with 'e' substitution modifier
Message ID:
rt-22351-58308.18.6156801737793@rt.perl.org
# New Ticket Created by  support@siverion.com 
# Please include the string:  [perl #22351]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt2/Ticket/Display.html?id=22351 >



This is a bug report for perl from support@siverion.com,
generated with the help of perlbug 1.34 running under perl v5.8.0.


-----------------------------------------------------------------
[Please enter your report here]

The following 3 line program produces incorrect results with
perl 5.8.0 but it runs ok on 5.6.1.  The problem is the 'e'
substitution modifier.  It shouldn't have been there in my
code to begin with, but since it was perl should probably
still handle it correctly.


my $name = "chris";
$name =~ s/hr//e;
print "$name\n";


Here is the expected output:   cis

Here is the actual   output:   cchrisis


Note:  I have applied patch 18271 which corrects a
string substitution problem that gives Mason headaches.

[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
    category=core
    severity=medium
---
Site configuration information for perl v5.8.0:

Configured by sivision at Tue May 27 15:43:38 MST 2003.

Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
  Platform:
    osname=linux, osvers=2.4.18-3, archname=i686-linux
    uname='linux dhcppc14 2.4.18-3 #1 thu apr 18 07:37:53 edt 2002 i686 unknown '
    config_args='-de -Dprefix=/usr/local/sivision/enablers -Dperladmin=support@siverion.com -Dcf_email=support@siverion.com -Dotherlibdirs=/usr/local/sivision/yieldreporter/lib -Dusemymalloc=y -Dmydomain=.siverion.com -Dinstallusrbinperl=n'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=y, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
    optimize='-O2',
    cppflags='-fno-strict-aliasing -I/usr/local/include -I/usr/include/gdbm'
    ccversion='', gccversion='2.96 20000731 (Red Hat Linux 7.3 2.96-110)', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=4, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lnsl -lndbm -lgdbm -ldl -lm -lc -lcrypt -lutil
    perllibs=-lnsl -ldl -lm -lc -lcrypt -lutil
    libc=/lib/libc-2.2.5.so, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.2.5'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
    cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'

Locally applied patches:
    

---
@INC for perl v5.8.0:
    /usr/local/sivision/enablers/lib/perl5/5.8.0/i686-linux
    /usr/local/sivision/enablers/lib/perl5/5.8.0
    /usr/local/sivision/enablers/lib/perl5/site_perl/5.8.0/i686-linux
    /usr/local/sivision/enablers/lib/perl5/site_perl/5.8.0
    /usr/local/sivision/enablers/lib/perl5/site_perl
    /usr/local/sivision/yieldreporter/lib
    .

---
Environment for perl v5.8.0:
    HOME=/home/sivision
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/usr/local/sivision/enablers/mysql/bin:/usr/local/sivision/enablers/bin:/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin:/home/sivision/bin
    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