I'm looking for a way a Perl program can determine the current user's home directory. Most OS's I've tried this on seem to store the information in an environment variable, but I haven't yet figured out a way to get this reliably across different OS's. Specifically I'm looking at Windows 2000, Windows XP, Linux, and Solaris. Any thoughts?