in reply to Improve perlfaq5: How can I translate tildes (~) in a filename?

What's interesting is that the logic used in bsd_glob.c seems to be the reverse: first $HOME is checked and then getpwuid is called.