What does 'By a whisker' mean?

If you do something by a whisker, you only just manage to do it and come very near indeed to failing.

Idioms similar to 'By a whisker'

See also: