note
Corion
<p>I think you want</p>
<c>
use if $^O eq 'MSWin32', 'Win32::OLE', 'CP' => 'CP_UTF8';
</c>
<p>That is still the "old" way of using [mod://Win32::OLE]. The new way would be something like:</p>
<c>
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 );
}
</c>
11137418
11137429