I am using your Win32::OLE::Const module so that Excel constants are available in Perl.
I recently had a clean installation of Win7 x64 with Office 2016, and the script no longer worked (using the latest Win32::OLE::Const module, which is installed with the current (on 04/06/2016) ActiverPerl 64 bit installation).
After some investigation, I found that Win32::OLE::Const did not see the Excel automation object, although it was well registered and available in the registration database.
In the registration database, the following key contains the path to the Excel executable file:
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{00020813-0000-0000-C000-000000000046}\1.9\0\Win64
If I add a new key manually
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{00020813-0000-0000-C000-000000000046}\1.9\0\Win32
with the same path as for the Win64 key, then the Perl script found Excel typelib and worked again.
Hope this helps.
source share