Our ancestors had to learn foraging the hard way. Through trial and the occasional fatal error, we sorted edible from the harmful.