in reply to OLE Error
Without code, there's not much we can do for you other than mention that the error message is a pretty good hint. Run your script in debugging mode and find out why that hoped-for hash reference is, in fact, undef.