You also have a lot of nested loops - For each line in REF you cycle over all keys in %ref. This algorithm will result in a large number of identical lines in your output file. I cannot really judge whether this is appropriate, though, since I have a little difficulty following your description. To make it more clear, post an example of input and expected output (wrapped in <code> tags to maintain format). An example is worth 1,000 words. See How do I post a question effectively?.
In reply to Re: Comparing two hashes-help
by kennethk
in thread Comparing two hashes-help
by Gemchal
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |