ansh batra has asked for the wisdom of the Perl Monks concerning the following question:
if(this)
then add key
if(this)
then add value to a key
if(this)
then add another value the same key
my %children = ( 'a' => [ 'b', 'c' ], 'c' => [ 'x' ], 'b' => [ 'x' ], 'x' => [ 'y' ], 'y' => [ 'z' ], 'z' => [ ], );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: hash : how to add values and keys dynamically
by umasuresh (Hermit) on Dec 21, 2011 at 13:14 UTC | |
|
Re: hash : how to add values and keys dynamically
by zwon (Abbot) on Dec 21, 2011 at 14:01 UTC | |
|
Re: hash : how to add values and keys dynamically
by Anonymous Monk on Dec 21, 2011 at 15:04 UTC |