in reply to Re^2: perl script for word
in thread perl script for word

see Does Win32::OLE::Const->Load('Microsoft Excel'); depends upon Excel version

or use the Object Browser in VBA to find the numeric values and define the constants yourself.
use constant { wdCharacter => 1, wdOutlineView => 2, wdPrintView => 3, };
poj