in reply to Re: accessing data inside HASH(0x225b94)
in thread accessing data inside HASH(0x225b94)
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: accessing data inside HASH(0x225b94)
by Kashratul (Acolyte) on Feb 13, 2008 at 04:11 UTC |