Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

RE (tilly) 1: Win32::OLE

by tilly (Archbishop)
on Sep 28, 2000 at 04:46 UTC ( [id://34311] : note . print w/replies, xml ) Need Help??

in reply to Win32::OLE

Your die if Word is not accessible should be more informative. At the least it should use Win32::OLE->LastError(). Error handling and how you use the module's methods to come up with good messages is one of the first things you should look for.

Replies are listed 'Best First'.
Re: RE (tilly) 1: Win32::OLE
by Anonymous Monk on Mar 01, 2004 at 18:52 UTC
    I tried runnin this code and received a "constant subroutine emptyenum redefined at C:/Perl/site/lib/Win32/OLE/ line-1" error.. what does this mean?
      It means that somehow "emptyenum" got defined twice. You can search the code for that string and see if you can figure it out.

      I suspect that there is either something unusual about your usage, or you have a messed up installation. But I don't know as I no longer use Windows.

      If you can't figure it out on your own, you could post to Seekers of Perl Wisdom and see if anyone else has seen this error. (Replies in buried threads are unlikely to be seen and responded to...)

        Get rid of the perl interpreter on line1. I had the same problem. After that, my windows2000 system worked fine with the script.