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

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

Thread Previous
From:
Ilya Zakharevich
Date:
November 10, 1999 15:18
Subject:
Re: [ID 19991110.001] study and //g bug?
Message ID:
199911102318.SAA08523@monk.mps.ohio-state.edu
Philip Kendall 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.

Ilya

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About