Other caterpillars have evolved from ant-loving to ant-eating : these myrmecophagous caterpillars secrete a pheromone that makes the ants act as if the caterpillar is one of their own larvae .
Males secrete a mating pheromone that females follow .