http://qs321.pair.com?node_id=11137419


in reply to Bareword issue with Perl 5.34

I'm not sure why the code would work in Perl 5.28 as given, but for your problem see the Module Options of Win32::OLE. The new syntax to use is

use Win32::OLE; Win32::OLE->Options(CP => Win32::OLE::CP_UTF8);

Alternatively, you can make the CP_UTF8 constant known by importing it explicitly from Win32::OLE:

use Win32::OLE 'CP_UTF8'; Win32::OLE->Options(CP => CP_UTF8);