Win32::OLE Class Variables
The Win32::OLE module defines certain class variables that set default behavior for automation usage:
$Win32::OLE::CPDetermines the codepage used by all translations between Perl strings and Unicode strings used by the OLE interface. The default value is
CP_ACP, which is the default ANSI codepage. It can also be set toCP_OEMCP, which is the default OEM codepage. Both constants are not exported by default.$Win32::OLE::LCIDControls the locale identifier used for all OLE calls. It is set to
LOCALE_NEUTRALby default. Check the Win32 module for other locale-related information.$Win32::OLE::WarnDetermines the behavior of the Win32::OLE module when an error happens. Valid values are:
0Ignores error, returns
undef.1Uses
Carp::carpif$^Wis set (-w option).2Always uses
Carp::carp.3Uses
Carp::croak.
The error number and message (without
Carpline/module info) are also available through theWin32::OLE->LastErrormethod.