in reply to hash question
Works for me:
use strict; use warnings; use Data::Dump::Streamer; my %hoh = ( a => {a1 => {a11 => 1, a12 => 1,}, b1 => {b11 => 1, b12 => 1,}, c1 + => 1,}, b => {a2 => {a22 => 2, a22 => 2,}, b2 => {b22 => 2, b22 => 2,}, c2 + => 2,}, ); Dump (get ()); sub get { return $hoh{'a'}; }
Prints:
$HASH1 = { a1 => { a11 => 1, a12 => 1 }, b1 => { b11 => 1, b12 => 1 }, c1 => 1 };
How about you show us your equivelent code that doesn't work?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: hash question
by megaurav2002 (Monk) on Dec 12, 2008 at 00:57 UTC | |
by GrandFather (Saint) on Dec 12, 2008 at 01:02 UTC | |
by quester (Vicar) on Dec 12, 2008 at 05:11 UTC |