Carrots don't give you good eyesight. This was propaganda spread by the British soldiers in WW2 to hide from the Germans the fact that they had invented radar and could detect incoming air-raids much earlier.