develooper Front page | perl.perl5.porters | Postings from November 1999

Re: [ID 19991110.001] study and //g bug?

Thread Previous | Thread Next
M.J.T. Guy
November 11, 1999 09:55
Re: [ID 19991110.001] study and //g bug?
Message ID:
Ilya Zakharevich <> wrote
> > $field="disk whi";
> > study $field;
> > print "Studied!\n";
> > print "Found ",++$i, " matches\n" while($field=~/disk/g);
> > 
> > it gets stuck in an infinite loop, whereas if I comment out the
> > study $field line, it works fine and just returns one match.
> > Summary of my perl5 (5.0 patchlevel 5 subversion 2) configuration:
> I do not see this with 5.005_03.

I see it with any of 5.005 - 5.005_03 (sample config attached).

I don't see it with any 5.004*, nor with 5.005_62.

Mike Guy

% perl -V
Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration:
    osname=solaris, osvers=2.6, archname=sun4-solaris
    hint=previous, useposix=true, d_sigaction=define
    usethreads=undef useperlio=undef d_sfio=undef
    cc='gcc', optimize='-O', gccversion=
    cppflags='-I/usr/local/include -I/opt/local/include -DREG_INFTY=22786'
    ccflags ='-I/usr/local/include -I/opt/local/include -DREG_INFTY=22786'
    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='gcc', ldflags =' -L/usr/local/lib -L/opt/local/lib'
    libpth=/usr/local/lib /opt/local/lib /lib /usr/lib /usr/ccs/lib
    libs=-lsocket -lnsl -ldl -lm -lc -lcrypt
    libc=/lib/, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
    cccdlflags='-fpic', lddlflags='-G -L/usr/local/lib -L/opt/local/lib'

Characteristics of this binary (from libperl): 
  Locally applied patches:
  Built under solaris
  Compiled at Oct 13 1999 04:22:25

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About