Subject: | minicpan does not identify home directory properly in Windows etc. |
Line 57 of minicpan says
%config = config_read( $ENV{HOME} . '/.minicpanrc' );
but on Windows (and maybe other OS's) HOME is undefined. So it gives a warning about contatenating undefined value.
You may want to consider using File::HomeDir to identify the home directory. (Alas, the current version is buggy in Windows, but I've submitted some information to the author, so it should be fine for the next version.)
In the meantime, you could look at CPANPLUS's method of determining the home directory, which checks various variables. Something like the following (based on CPANPLUS v0.49):
use File::Spec;
use Cwd;
sub _home_dir {
return defined $ENV{HOME} ? $ENV{HOME} :
defined $ENV{HOMEPATH} ?
File::Spec->catfile($ENV{HOMEDRIVE},$ENV{HOMEPATH}) :
defined $ENV{USERPROFILE} ? $ENV{USERPROFILE} :
defined $ENV{WINDIR} ? $ENV{WINDIR} :
defined $ENV{windir} ? $ENV{windir} : getcwd();
}