in reply to Why tilde symbol now works in perl file testing
See also How can I translate tildes (~) in a filename?.
Hope that helps,