On Fri, 22 Jun 2001, Paul wrote: > $count = () = /$pattern/g; This seems like a place that an array() operator like scalar() woudl be usefull. Then you could do '$count = array(/$pat/g);' instead. I know the above works well, but it would be nice for completeness to have array() as well as scalar(). Perlfunc suggests... '$count = @{[ /$pattern/g ]};' but that isn't as obvious as array. -- Ian
- RE: How do I determine number of matches in a regex? Wagner-David
- RE: How do I determine number of matches in a rege... Paul
- RE: How do I determine number of matches in a ... iansmith
- RE: How do I determine number of matches i... Brett W. McCoy
- RE: How do I determine number of match... iansmith
- RE: How do I determine number of ... Brett W. McCoy
- Re: How do I determine number... Michael Fowler
- RE: How do I determine nu... Paul Burkett
- Re: How do I determine number of match... Michael Fowler
- Re: How do I determine number of matches i... Randal L. Schwartz
- Re: How do I determine number of match... iansmith
- Re: How do I determine number of ... Brett W. McCoy
- Re: How do I determine number... iansmith