develooper Front page | perl.perl5.porters | Postings from February 2001

[ID 20010226.004] Regexp bug since perl 5.00503

Thread Next
From:
ry66
Date:
February 26, 2001 10:09
Subject:
[ID 20010226.004] Regexp bug since perl 5.00503
Message ID:
E14XS4l-0007M0-00@tplx1.rz.uni-karlsruhe.de

This is a bug report for perl from ry66@rzlx-21.rz.uni-karlsruhe.de,
generated with the help of perlbug 1.26 running under perl 5.00503.


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

for ("123abcxyz", "123abc,xyz") {
        if (/^(.*)(,)?(abc)(,)?(.*)$/) {
			print "'$1'  '$2'  '$3'  '$4'  '$5'\n";
	}
}

should produce the following:

'123'  ''  'abc'  ''  'xyz'
'123'  ''  'abc'  ','  'xyz'

but perl later than 5.004 doesn't think so:

'123'  ''  'abc'  ''  'xyz'
'123'  ','  'abc'  ','  'xyz'




[Please do not change anything below this line]
-----------------------------------------------------------------

---
Site configuration information for perl 5.00503:

Configured by ry66 at Thu Aug 10 13:19:45 CEST 2000.

Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration:
  Platform:
    osname=linux, osvers=2.2.16, archname=i686-linux
    uname='linux rzlx-21 2.2.16 #2 smp tue jul 25 14:29:43 cest 2000 i686 unknown '
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef useperlio=undef d_sfio=undef
  Compiler:
    cc='cc', optimize='-O2', gccversion=2.95.2 20000220 (Debian GNU/Linux)
    cppflags='-Dbool=char -DHAS_BOOL -I/usr/local/include'
    ccflags ='-Dbool=char -DHAS_BOOL -I/usr/local/include'
    stdchar='char', d_stdstdio=undef, usevfork=false
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    alignbytes=4, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lnsl -lndbm -lgdbm -ldb -ldl -lm -lc -lposix -lcrypt
    libc=, so=so, useshrplib=false, libperl=libperl.a
  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 5.00503:
    /usr/machine/lib/perl5/5.00503/i686-linux
    /usr/machine/lib/perl5/5.00503
    /usr/machine/lib/perl5/site_perl/5.005/i686-linux
    /usr/machine/lib/perl5/site_perl/5.005
    .

---
Environment for perl 5.00503:
    HOME=/home/ws/ry66
    LANG (unset)
    LANGUAGE (unset)
    LC_CTYPE=de_DE
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/usr/local/bin:/usr/machine/bin:/usr/bin:/bin:/usr/bin/X11:/usr/segment/bin:/usr/games:/home/ws/ry66/bin/i586-pc-linux-gnulibc2.1:/home/ws/ry66/bin:.
    PERL_BADLANG (unset)
    SHELL=/usr/machine/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