On Tue, Aug 29, 2000 at 09:23:59AM -0600, Tom Christiansen wrote: > () = $string =~ m{ > (\d\d) - (\d\d) - (\d\d) > (?{ push @dates, makedate($1,$2,$3) }) > }gx; That empty list to force the proper context irks me. How about a modifier to the RE that forces it (this would solve the "counting matches" problem too). $string =~ m{ (\d\d) - (\d\d) - (\d\d) (?{ push @dates, makedate($1,$2,$3) }) }gxl; $count = $string =~ m/foo/gl; # always list context -Scott -- Jonathan Scott Duff [EMAIL PROTECTED]
- Re: RFC 110 (v3) counting matches Mark-Jason Dominus
- Re: RFC 110 (v3) counting matches Bart Lateur
- Re: RFC 110 (v3) counting matches Mark-Jason Dominus
- $& and copying: rfc 158 (was Re: RFC 110 ... Uri Guttman
- Re: $& and copying: rfc 158 (was Re: RFC ... Mark-Jason Dominus
- Re: $& and copying: rfc 158 (was Re: RFC ... Tom Christiansen
- Re: $& and copying: rfc 158 (was Re: RFC ... Mark-Jason Dominus
- Re: $& and copying: rfc 158 (was Re: RFC ... Mark-Jason Dominus
- Re: RFC 110 (v3) counting matches Joe McMahon
- Re: RFC 110 (v3) counting matches Tom Christiansen
- Re: RFC 110 (v3) counting matches Jonathan Scott Duff
- Re: RFC 110 (v3) counting matches Tom Christiansen
- Re: RFC 110 (v3) counting matches Nathan Wiger
- Re: RFC 110 (v3) counting matches Jonathan Scott Duff
- Re: RFC 110 (v3) counting matches Nathan Wiger
- Re: RFC 110 (v3) counting matches Tom Christiansen
- Re: RFC 110 (v3) counting matches Nathan Wiger
- Re: RFC 110 (v3) counting matches Bart Lateur
- Re: RFC 110 (v3) counting matches Tom Christiansen
- Re: RFC 110 (v3) counting matches Bart Lateur
- Re: RFC 110 (v3) counting matches Tom Christiansen