Whaaaaaaaaat?!?!?! This grossed me out!

When I was a kid, my parents used to occasionally say that if I do scenario A or scenario B, that it would give me worms.  Usually by eating an old piece of food.  I used to laugh it off.  Mom and Dad....i'm sorry..... I will be blinking hard for the rest of the day.... help