in reply to Re: (another) HoH question
in thread (another) HoH question
Thanks for your answers!
I had a vague sense that something was blocking either the level-1 assignments or level-3 assignments. Data::Dumper certainly cleared that up (I had never used this before, and this will become a favorite.)
What I'm trying to do is use a hash to do a hash to merge two sets:
Set 1: I have a text file establishing the universe of accepted values:
I've tried building the first hash and using arrays for the latter hash, but it runs rather slowly from all the repeated scans.
Suggestions appreciated.
I had a vague sense that something was blocking either the level-1 assignments or level-3 assignments. Data::Dumper certainly cleared that up (I had never used this before, and this will become a favorite.)
What I'm trying to do is use a hash to do a hash to merge two sets:
Set 1: I have a text file establishing the universe of accepted values:
Set 2: A set of values pointing to the hash. There may be multiple recs pointing to a hash rec (that's OK, as I just need to know of the existence of one). There maybe hash records that no one uses.abc 123 abc 456 abc 789 xyz 456 Hash: 123->abc 456->abc 456->xyz 789->abc
I could just hash the second set, but I won't get the non-use ones like 456->xyz.xxx ==> 456->abc xxx ==> 789->abc yyy ==> 456->abc yyy ==> 456->abc (a dup) zzz ==> 123->abc Resulting hash 123->abc->zzz 456->abc->xxx 456->abc->yyy 456->xyz 789->abc->xxx
I've tried building the first hash and using arrays for the latter hash, but it runs rather slowly from all the repeated scans.
Suggestions appreciated.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: (another) HoH question
by muba (Priest) on Jun 23, 2012 at 19:38 UTC | |
by zuma53 (Beadle) on Jun 23, 2012 at 19:52 UTC | |
by muba (Priest) on Jun 23, 2012 at 19:59 UTC | |
by zuma53 (Beadle) on Jun 25, 2012 at 04:21 UTC | |
Re^3: (another) HoH question
by johngg (Canon) on Jun 24, 2012 at 16:24 UTC |
In Section
Seekers of Perl Wisdom