All automation data has to be coerced into a special type called a Variant. Most of the time, you don’t need to worry about explicit type coercion. You just provide your scalar data, and the magic of automation takes care of the rest. However, there are times when you want to control the exact type of data you’re sending to the automation server. The Win32::OLE::Variant module provides access to the Variant data type and lets you control exactly how the data is represented.
A Variant is an OLE data structure that contains a type field and a data field. The flags are implemented in Perl (as are many constants) as subroutines that return an integer value. The following table lists the Variant type flags, along with a brief description of each:
No value specified. Incidentally, automation does
A two-byte integer value.
A four-byte integer value.
An IEEE four-byte real value.
An IEEE eight-byte real value.
An automation currency value.
An automation date value.
A string value.
The value contains another automation object.
An error code was specified. ...