miyagawa/cpanminus — Issue #132: $ENV{HOME}/.cpanm does not work well on MS Windows
Author: kmx
Created: 2011-11-15 20:58:28+00:00
State: open

HOME env variable does not exist on MS Windows by default therefore $ENV{HOME}/.cpanm usually ended up to be C:\.cpanm

On MS Windows there are:
HOMEDRIVE=C:
HOMEPATH=\Users\loginname

IMHO using File::HomeDir would be the best way

--kmx