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

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

Thread Previous | Thread Next
Ilya Zakharevich
November 30, 1999 08:43
Re: [ID 19991130.003] Assignment to List Breaks \G.
Message ID:
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?


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