in reply to Re^2: The return value of m// (clues)
in thread The return value of m//

Really i could not understand but the code

$count = $a =~ /\d+/g ; vs. $count = () = $a =~ /\d+/g ;

is an issue.