in reply to Re^3: How to build a hash?
in thread How to build a hash?
Sorry, maybe my use english is a bit confusing... 8-)
My problem was, I stored a reference to a hash (%hash_a) in a hash (%hash_b). Worked perfectly for one record.
Now, when i overwrote the contents of %hash_a, the contents in %hash_b where overwritten, too.
The whole stuff worked for more than one record only after I introduced the curly braces.
My problem was, I stored a reference to a hash (%hash_a) in a hash (%hash_b). Worked perfectly for one record.
Now, when i overwrote the contents of %hash_a, the contents in %hash_b where overwritten, too.
The whole stuff worked for more than one record only after I introduced the curly braces.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: How to build a hash?
by davorg (Chancellor) on Apr 26, 2005 at 15:16 UTC |
In Section
Seekers of Perl Wisdom