In Finnish army they have a different kind of pencil test. The hair of soldier shouldn't be longer than the width of pencil. It was the greatest joy of arrogant conscript sergeants to test the length of hair with the help of pencil.

Just few years ago this really applied and probably it still applies at garrisons headed by petty-hitlers.

However it never applies for women and I remembered that there was one case when a male conscript asked for the equality between sexes.
This doesn't surprise anyone but he lost his case.