Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
It's returning:$VAR1 = { 'request_1.3.6.1.2.1.2.2.1.12.30' => { 'Error_Status' => 'No error', '1.3.6.1.2.1.2.2.1.19.30' => [ [ 'ifOutDiscards.30', '6' ] ], '1.3.6.1.2.1.2.2.1.11.30' => [ [ 'ifInUcastPkts.30', '6' ] ], '1.3.6.1.2.1.2.2.1.20.30' => [ [ 'ifOutErrors.30', '6' ] while ( my ($key, $reference) = each %key_hash){ foreach my $temp (@{$reference}){ print "$key, $reference\n"; } }
Anyone see my mistake?request_1.3.6.1.2.1.2.2.1.12.30, HASH(0x1e111cc)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Printing a hash of arrays ??
by Mr. Muskrat (Canon) on Mar 26, 2003 at 21:59 UTC | |
by Anonymous Monk on Mar 26, 2003 at 22:02 UTC | |
|
Re: Printing a hash of arrays ??
by chromatic (Archbishop) on Mar 26, 2003 at 21:54 UTC | |
|
Re: Printing a hash of arrays ??
by dragonchild (Archbishop) on Mar 27, 2003 at 00:10 UTC | |
by Futant (Acolyte) on Mar 27, 2003 at 12:49 UTC | |
by Anonymous Monk on Mar 27, 2003 at 14:05 UTC | |
by dragonchild (Archbishop) on Mar 27, 2003 at 15:40 UTC |