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

Re: [ID 19991130.003] Assignment to List Breaks \G.

Thread Previous | Thread Next
From:
Ilya Zakharevich
Date:
November 30, 1999 08:43
Subject:
Re: [ID 19991130.003] Assignment to List Breaks \G.
Message ID:
199911301643.LAA12574@monk.mps.ohio-state.edu
Ronald J Kimball writes:
> This is the expected behavior for m//g in a list context.  The regular
> expression is applied repeatedly until it no longer matches, and the return
> value is a list of all the substrings matched.  After the final application
> of the regex, which fails to match, pos() is reset to the beginning of the
> string.

I remember some discussion for making list context m//gc behave differently.

What was the result?

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