I watched a BBC nature documentary tonight that had something similar to that. The mom was pretty damn big (for a worm) and she had loads of babies slithering all over her. And then they ate her skin. She grows new skin every three days and the babies eat it. Was really icky to watch
http://www.bbc.co.uk/iplayer/episode/b063hkgm/animal-super-parents-1-going-it-alone
link but probably you have to be in the UK (and I don't know where in the program the worm bit was - probably after the halfway mark)
edit: Caecilians (Gymnophiona)
Caecilians look like huge worms but are in fact amphibians. They are found in almost every rainforest but these extraordinary animals spend most of their time in underground lairs.
Here, the mother feeds her larvae by letting them lick a secretion at an opening on her body called a “cloaca”. And in a more gruesome twist, she lets her babies, which have sharp tiny teeth, tear off and eat her fatty, nutrient-rich skin. She re-grows her skin every three days to keep feeding them.
basically she secretes sticky liquid out of her arse (which looks like a penis) and her babies also eat her skin