You have not given details of your dog's problems? From side worms are coming out of your dog? Mouth or anus? Intestinal worms are usually seen along with the stools. If worms coming out from the mouth or from the anus without stools then he is having severe worms infection. This condition should be immediately treated. So, take your dog to vet.