Re: Count number of times matched

2005-12-01 Thread Dr.Ruud
SG Edwards: > I want to count the number of times that a match occurs perldoc -q count -- Affijn, Ruud "Gewoon is een tijger." -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Count number of times matched

2005-12-01 Thread Xavier Noria
On Dec 1, 2005, at 15:13, SG Edwards wrote: Hi folks, If I want to count the number of times that a match occurs in a line is there a way of doing this, if there is I have not found it! e.g. $line="This is a sentence about matching sentences.\n"; $line=~/sentence/ig; If you just want to

Re: Count number of times matched

2005-12-01 Thread Jeff 'japhy' Pinyan
On Dec 1, SG Edwards said: If I want to count the number of times that a match occurs in a line is there a way of doing this, if there is I have not found it! $line="This is a sentence about matching sentences.\n"; $line=~/sentence/ig; So I will have matched "sentence" twice and I want to re

Re: Count number of times matched

2005-12-01 Thread Shawn Corey
SG Edwards wrote: If I want to count the number of times that a match occurs in a line is there a way of doing this, if there is I have not found it! e.g. $line="This is a sentence about matching sentences.\n"; $line=~/sentence/ig; So I will have matched "sentence" twice and I want to record

Count number of times matched

2005-12-01 Thread SG Edwards
Hi folks, If I want to count the number of times that a match occurs in a line is there a way of doing this, if there is I have not found it! e.g. $line="This is a sentence about matching sentences.\n"; $line=~/sentence/ig; So I will have matched "sentence" twice and I want to record this.