$ENV{HOME} is likely to be the home directory of the current user, but don't count on it. Things such as su, sudo, and cron can commonly either leave it pointing at the wrong place or completely unset). Use the value from getpwuid to be certain.</pedant>