Freethinker0 has asked for the wisdom of the Perl Monks concerning the following question:
It looks to me like a hash within an array within a hash within a hash. If I do print ($res1->{'report'}[0]); it returns '2011-01-25 10:30:50'. So far so good. I thought from here I need to do is change the code to print ($res1->{'report'}[0]->{'AntiVir'}); to get the key value of 'Eicar-Test-Signature'. Instead it returns nothing. I know I am close, but after a few hours on this, I am turning to you guys. Thanks much.$VAR1 = { 'report' => [ '2011-01-25 10:30:50', { 'AntiVir' => 'Eicar-Test-Signature', ... } ] };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Pulling a hash value in a data structure
by wfsp (Abbot) on Jan 25, 2011 at 16:48 UTC | |
|
Re: Pulling a hash value in a data structure
by toolic (Bishop) on Jan 25, 2011 at 18:27 UTC | |
|
Re: Pulling a hash value in a data structure
by AnomalousMonk (Archbishop) on Jan 25, 2011 at 18:24 UTC | |
|
Re: Pulling a hash value in a data structure
by biohisham (Priest) on Jan 25, 2011 at 18:00 UTC |