It might be eye flukes.
Are the worms behind the lens of the eye.
Do the worms have a forked tail. Hair like worms can also be anchor worm.
Eye Flukes (a.k.a. Eye Cloud)
Symptoms:
Fish with this condition will have white specks inside the lens of the eye. This can lead to further damage, ranging from cloudiness of the eye to rupturing of the lens and blindness. In severe cases the eye may actually be pushed out and removed from the socket, leaving the fish eyeless.
Cause:
The larval stage of digenetic fluke parasites, such as Clinostomum, Posthodiplostomum and Diplostomum spathaceum. The parasite lodges in the lens, humour or retina of the fish’s eye. If present in large numbers, severe damage can occur. Minor infestations may go unnoticed. The life cycle of these flukes begins when fish-eating birds and other animals ingest fish infected with the parasites. Once ingested the parasites mature in the intestines of the host animal where they produce eggs. The eggs are then deposited into the water where they hatch and infect the livers of aquatic Snails. The parasites then develop into a second and third larval form before leaving the Snail to seek out a fish host. This type of parasitic infestation is most common in wild-caught fish and fish kept in ponds.
Treatment:
Treatment with Copper or Organophosphorous antiparasitic remedies have proven most beneficial. Prevention, however, works best. This entails avoiding any obviously infected fish, discouraging fish-eating birds from visitng your pond, and remving any snails from the aquarium or pond to end the cycle of infection (so as to interrupt the life cycle of the parasite).