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

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

Thread Previous | Thread Next
From:
Ilya Zakharevich
Date:
November 11, 1999 12:25
Subject:
Re: [ID 19991110.001] study and //g bug?
Message ID:
199911112025.PAA14739@monk.mps.ohio-state.edu
M.J.T. Guy writes:
> > > $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 ran it again with 5.005_03, and now it loops.  (?!)

Ilya

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