As school students we used to exclaim at 'worms that walked' with their legs that moved in a wavy pattern! We called them 'Train worms' as they resemble a train (Railvandi poochi' in Tamil).
We also poked them with a stick to see them how they coil round themselves and remain dormant! It is the Millipede (Yellow-spotted millipede, 'Maravattai' or ' Railvandi poochi' in Tamil, Harpaphe haydeniana).