http://qs1969.pair.com?node_id=11137418

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hello monks

Loading the following does not produce any issue with Perl 5.28.

use strict; use warnings; $Win32::OLE::CP = CP_UTF8;

It produces issues however with Perl 5.34:

Bareword "CP_UTF8" not allowed while "strict subs" in use at test.pl l +ine 3. Execution of test.pl aborted due to compilation errors.

Changing $Win32::OLE::CP = CP_UTF8; to $Win32::OLE::CP = 'CP_UTF8'; avoid Perl complaining, however the feature is no more loaded. What is the best approach to solve this?