Subject: | how to properly handle $ENV{HOME} on Win32 |
use User;
my $home = User->Home;
User - API for locating user information regardless of OS
sub Home {
return $ENV{HOME} if $ENV{HOME};
return $ENV{USERPROFILE} if $ENV{USERPROFILE};
return "";
}