in reply to Counting Substrings in Strings
$text = 'asdasd'; $count = () = $text =~ /asd/g; [download]