Win32::OLE->GetObject ( filename )
Creates an automation object based on a document.
is the full pathname of the document, which can be optionally
followed by additional item subcomponents separated by exclamation
This code creates an Excel instance based on an Excel file. It is not always clear what type of object$doc = 'c:\test\test.xls'; $x1 = Win32::OLE->GetObject($doc);