Perl-Sensitive Sunglasses | |
PerlMonks |
Re^2: Comparing Hash key with arrayby packetstormer (Monk) |
on Feb 02, 2012 at 17:21 UTC ( [id://951498]=note: print w/replies, xml ) | Need Help?? |
Here is the data in very simple form
So, I have a hash with the unique ID as it's key. In another part of the database is another table with problems/resolutions attached to the same unique ID. That is contained in the array (in array references). Each array has the unique ID in it first element. What I would like to do is start on that hash and take it's key. The run through the array and anywhere I get a match for the same ID push the rest of the array into the original value of the hash. In some cases, like above, there might be many arrays with the same ID (loads of problems/resolutions attached to the same case). I'd really appreciate any help, my head is set to burst!BTW, I have tried to lump the data together at the SQL end but datatype differences are stopping me grouping them there. EDIT: Hash should end up like:
In Section
Seekers of Perl Wisdom
|
|