getAgent returns a hash reference but you are assigning it to a hash.
The OP used my %hash = %{$ie->getAgent()}, which is functionally equivalent to my $hash_ref = $ie->getAgent(); my %hash = %{$hash_ref}. Also, you probably meant using keys in your foreach loop.
In reply to Re^2: accessing data inside HASH(0x225b94)
by Anonymous Monk
in thread accessing data inside HASH(0x225b94)
by Kashratul
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |