Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^3: Bareword issue with Perl 5.34

by Corion (Patriarch)
on Oct 11, 2021 at 18:18 UTC ( #11137432=note: print w/replies, xml ) Need Help??


in reply to Re^2: Bareword issue with Perl 5.34
in thread Bareword issue with Perl 5.34

I think you want

use if $^O eq 'MSWin32', 'Win32::OLE', 'CP' => 'CP_UTF8';

That is still the "old" way of using Win32::OLE. The new way would be something like:

use if $^O eq 'MSWin32', 'Win32::OLE'; if( $^O eq 'MSWin32' ) { Win32::OLE->Options( CP => 'CP_UTF8' ); # or maybe # Win32::OLE->Options( CP => Win32::OLE::CP_UTF8 ); }

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11137432]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2022-08-16 22:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?