in reply to accessing data inside HASH(0x225b94)

a collection of hash references?
use Win32::OLE qw(in); $collection=$ie->getAgent(); foreach $value (in $collection) { print keys %$value; }
and if you want to access the 'Name' key for example replace the line inside the foreach loop with
$filename= %$value->{Name};'

Replies are listed 'Best First'.
Re^2: accessing data inside HASH(0x225b94)
by Kashratul (Acolyte) on Feb 13, 2008 at 11:19 UTC
    Thanks for the help.

    But after executing this code I am getting the following error:

    Win32::OLE(0.1707): GetOleEnumObject() Not a Win32::OLE::Enum object at C:/Perl/lib/Win32/OLE/Lite.pm line 167.
      Apologies.I have not read the module's documentation and made an incorrect assumption.The docs say that 'getAgent() will return a reference to the Internet Explorer automation object, created using Win32::OLE' so what you expect in return is an object reference which you manipulate as in :
      $ie1=$ie->getAgent(); $ie1->gotoURL('http://www.google.com');