Subject: | Doesn't support Win32 |
File::HomeDir is a great idea, but doesn't work on Win32.
If it helps, here is a copy of my environment on a Win2K box from which you should easily be able to see how to add support for it.
DB<2> x \%ENV
0 HASH(0x1a44aa8)
'ALLUSERSPROFILE' => 'C:\\Documents and Settings\\All Users'
'APPDATA' => 'C:\\Documents and Settings\\adam\\Application Data'
'COMMONPROGRAMFILES' => 'C:\\Program Files\\Common Files'
'COMPUTERNAME' => 'OTHER'
'COMSPEC' => 'C:\\WINNT\\system32\\cmd.exe'
'HOMEDRIVE' => 'C:'
'HOMEPATH' => '\\Documents and Settings\\adam'
'LOGONSERVER' => '\\\\OTHER'
'NUMBER_OF_PROCESSORS' => 1
'OS' => 'Windows_NT'
'OS2LIBPATH' => 'C:\\WINNT\\system32\\os2\\dll;'
'PATH' => 'C:\\Perl\\bin\\;C:\\WINNT\\system32;C:\\WINNT;C:\\WINNT\\System32\
\Wbem;C:\\Program Files\\Bonjour\\;C:\\Program Files\\UltraEdit11'
'PATHEXT' => '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
'PERLDB_PIDS' => 1724
'PROCESSOR_ARCHITECTURE' => 'x86'
'PROCESSOR_IDENTIFIER' => 'x86 Family 6 Model 8 Stepping 1, AuthenticAMD'
'PROCESSOR_LEVEL' => 6
'PROCESSOR_REVISION' => 0801
'PROGRAMFILES' => 'C:\\Program Files'
'PROMPT' => '$P$G'
'SYSTEMDRIVE' => 'C:'
'SYSTEMROOT' => 'C:\\WINNT'
'TEMP' => 'C:\\DOCUME~1\\adam\\LOCALS~1\\Temp'
'TMP' => 'C:\\DOCUME~1\\adam\\LOCALS~1\\Temp'
'USERDOMAIN' => 'OTHER'
'USERNAME' => 'Adam'
'USERPROFILE' => 'C:\\Documents and Settings\\adam'
'VCTOOLKITINSTALLDIR' => 'C:\\Program Files\\Microsoft Visual C++ Toolkit 200
3\\'
'WINDIR' => 'C:\\WINNT'