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?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Bareword issue with Perl 5.34
by Corion (Patriarch) on Oct 11, 2021 at 14:58 UTC | |
by Anonymous Monk on Oct 11, 2021 at 17:24 UTC | |
by Corion (Patriarch) on Oct 11, 2021 at 18:18 UTC | |
Re: Bareword issue with Perl 5.34
by Fletch (Bishop) on Oct 11, 2021 at 19:56 UTC |
Back to
Seekers of Perl Wisdom