What do caterpillers eat and drink?

They drink water and eat leaves and fruits but they have to eat only small oeices of fruits. -Lipika