https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8050

--- Comment #28 from Henrik Krohns <apa...@hege.li> ---
It certainly does require "use Win32" here, just like mentioned in
https://perldoc.perl.org/Win32


STRAWBERRY

C:\Strawberry>perl\bin\perl -e "print
Win32::GetFolderPath(Win32::CSIDL_COMMON_APPDATA());"
Undefined subroutine &Win32::CSIDL_COMMON_APPDATA called at -e line 1.

C:\Strawberry>perl\bin\perl -e "use Win32; print
Win32::GetFolderPath(Win32::CSIDL_COMMON_APPDATA());"
C:\ProgramData

CYGWIN

$ perl -e 'print Win32::GetFolderPath(Win32::CSIDL_COMMON_APPDATA());'
Undefined subroutine &Win32::CSIDL_COMMON_APPDATA called at -e line 1.

$ perl -e 'use Win32; print
Win32::GetFolderPath(Win32::CSIDL_COMMON_APPDATA());'
C:\ProgramData


So probably something like this works.
{ require Win32; $home = Win32::GetFolderPath(Win32::CSIDL_COMMON_APPDATA()); }


I have no stamina to nitpick further, if that's where you want the directory,
I'm fine with it.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to