Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^3: Bareword issue with Perl 5.34

by Corion (Patriarch)
on Oct 11, 2021 at 18:18 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2024-03-28 15:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found