The railroad worm, actually a beetle, catch their prey by 'switching off' the yellow lights, leaving the red ones that millipedes can't see.