in reply to Re: working with multiple hash refs
in thread working with multiple hash refs
That is very broken. If a value appears more than once in the two hashes, then your code will discard all but one of the keys it is associated with. You can't just invert the hashes unless you know that all of the values are unique (or you don't care about losing data.)
Update: I was wrong. As jdporter explains below, he is not using values as keys. My apologies.
-sauoq "My two cents aren't worth a dime.";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: working with multiple hash refs
by jdporter (Paladin) on Dec 20, 2002 at 01:02 UTC | |
by sauoq (Abbot) on Dec 20, 2002 at 01:23 UTC |