- or download this
> perl -MWin32=CSIDL_LOCAL_APPDATA -le "print Win32::GetFolderPath(CSI
+DL_LOCAL_APPDATA)"
C:\Documents and Settings\DGolden\Local Settings\Application Data
- or download this
my $realhome;
if ($^O eq 'MSWin32') {
...
$realhome = Win32::GetFolderPath('CSIDL_LOCAL_APPDATA');
}
(defined $realhome) ? print "realhome: $realhome\n" : print "\$realho
+me not defined\n";
- or download this
Argument "CSIDL_LOCAL_APPDATA" isn't numeric in subroutine entry at im
+port.pl line 9.
realhome: C:\Documents and Settings\kbuser\Desktop