hii all my @find = $line[$i] =~ /\tabc[10]\t/g; This is the line in my pgm to check whether abc10 appears in my line. i wanted to check hw many times abc1, abc2, abc3.....etc appear in my text.it has worked well till i did it for abc9 but if i am running the same with abc10 its returning again abc1 results