What is the meaning of [A drowning man will clutch at a straw.]

When someone is in a difficult situation, s/he will take any available opportunity to improve it.

Example: After trying all reliable medicines, he is now visiting quacks to get a cure for his baldness. A drowning man will clutch at a straw.