Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
And then do this:$our_hash = { 'this' => 'that', 'foo' => ['bar', 'and', 'something', 'else'] };
our_hash turns into:$$our_hash{'somekey'} = { 'foo' => $$our_hash{'foo'} };
What I'm trying to do is get $our_hash->{'somekey'}->{'foo'} to have the same value as $our_hash->{'foo'}$our_hash = { 'this' => 'that', 'foo' => [], 'somekey' => { 'foo' => ['bar', 'and', 'something', 'else'] } };
I have no idea what I did wrong!
Thanks in advance!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Hash/array madness
by Fletch (Bishop) on Jul 25, 2002 at 02:08 UTC | |
|
Re: Hash/array madness
by sauoq (Abbot) on Jul 25, 2002 at 02:25 UTC |