$word=Win32::OLE->GetActiveObject('Word.Application'); #### $word=Win32::OLE->CreateObject('Word.Application');