To get rid of snails or slugs, place a glass or a can in a hole so that the top is level with the ground, fill almost to the rim with beer and leave overnight. In the morning, dump the pests on the compost heap.