On Jun 22, Chas Owens said:
>On 22 Jun 2001 17:11:42 -0400, Jeff 'japhy' Pinyan wrote:
>> On Jun 22, Bradford Ritchie said:
>>
>> >Does anyone know how to count the number of times a regex (global)
>> >matches?
>>
>> Either:
>>
>> $count += while /regex/g;
>
>I think you meant:
>
>$count++ while /regex/g;
Yeah. My finger slipped off the shift key too soon. Um, or not. I
usually write $count++. Oh well. I'm a moron.
--
Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/
I am Marillion, the wielder of Ringril, known as Hesinaur, the Winter-Sun.
Are you a Monk? http://www.perlmonks.com/ http://forums.perlguru.com/
Perl Programmer at RiskMetrics Group, Inc. http://www.riskmetrics.com/
Acacia Fraternity, Rensselaer Chapter. Brother #734
** Manning Publications, Co, is publishing my Perl Regex book **