hi, how do efficent count char 'a' in string "abdaatela" ?
i guess there are better solutions than: $tmpstr =~ s/[^a]//g ; $cnt = length ($tmpstr) ; print ("found <$cnt> a's <$tmpstr>\n"); thanx george -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]