in reply to Weird crypt Behavior

perldoc -f crypt says:

Encrypts a string exactly like the crypt(3) func- tion in the C library (assuming that you actually have a version there that has not been extirpated as a potential munition).

Wasn't yours been extirpated?

Maybe  perl -V can tell you. Look for the  -lcrypt string.