G
Gary Mayor
Hi,
Thanks for everyone in my earlier message. Now i've got a problem with
regex. I've got a file with lines like this,
CATETITLE1 CATETITLE2 CATETITLE3 CATETITLE4
CATETITLE5 CATETITLE6 CATETITLE7 CATETITLE8
while(<FILE>) {
if ($_=~ /CATETITLE/) {
$counter++;
}
}
if I then run through the file and match each time there is a CATETITLE
I only get a count of 2. How do I find out the total amount of CATETITLE?
Thanks
Gary
Thanks for everyone in my earlier message. Now i've got a problem with
regex. I've got a file with lines like this,
CATETITLE1 CATETITLE2 CATETITLE3 CATETITLE4
CATETITLE5 CATETITLE6 CATETITLE7 CATETITLE8
while(<FILE>) {
if ($_=~ /CATETITLE/) {
$counter++;
}
}
if I then run through the file and match each time there is a CATETITLE
I only get a count of 2. How do I find out the total amount of CATETITLE?
Thanks
Gary