in reply to Re^2: Win32 CSIDL_LOCAL_APPDATA
in thread Win32 CSIDL_LOCAL_APPDATA
I suspect you've been through too many iterations trying to get it to work to see the code clearly. Stepping back, you need to specify the package to import (ah, the irony of import):
if ($^O eq 'MSWin32') { require Win32; Win32->import( qw(CSIDL_LOCAL_APPDATA) ); $realhome = Win32::GetFolderPath( CSIDL_LOCAL_APPDATA() ); }
-xdg
Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.
|
|---|