sir_com has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks, I have a script which uses win32::ole module. Till previous week script ran fine but this week all of sudden I am getting the below error Win32::OLE(0.1707) error 0x800a03ec in METHOD/PROPERTYGET "Range" at C:\Scripts Can't use an undefined value as a HASH reference at C:\Scripts\report.pl Please tell me how to solve this. Thanks

Replies are listed 'Best First'.
Re: OLE Error
by keszler (Priest) on Nov 03, 2009 at 19:43 UTC
Re: OLE Error
by roboticus (Chancellor) on Nov 03, 2009 at 19:44 UTC
    sir com:

    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.

    ...roboticus