Subject: | Use of $ENV{HOME} not useful on Win32 |
You cannot expect HOME to be set on Win32. You can use HOMEDRIVE and HOMEPATH together for the same purpose.
The fix is simple (and portable):
Compare: (<)C:\.cpan\build\Term-ReadLine-Perl-1.0203\ReadLine\readline.pm (116579 bytes)
with: (>)C:\tools\perl\site\lib\Term\ReadLine\readline.pm (122074 bytes)
1330c1330
< $file = "$ENV{'HOME'}/.inputrc" unless defined $file;
---
Show quoted text
> $file = ($ENV{'HOME'} || $ENV{'HOMEDRIVE'} . $ENV{'HOMEPATH'}) . "/.inputrc" unless defined $file;