Actually it can be even neater. Win32::OLE provides a function with() that would let you do this:
use Win32::OLE qw(with);
...
with($Word->Options,
LocalNetworkFile => 0,
AllowFastSave => 1,
BackgroundSave => 1,
CreateBackup => 0,
SavePropertiesPrompt => 0,
SaveInterval => 10,
SaveNormalPrompt => 0,
DisableFeaturesbyDefault => 0,
);
I forgot about it when writing that node.
Jenda
We'd like to help you learn to help yourself
Look around you, all you see are sympathetic eyes
Stroll around the grounds until you feel at home
-- P. Simon in Mrs. Robinson |