Even telling us why you are doing it would help somewhat. Context can help a lot to make sense of an otherwise poor explanation. Bear in mind that we don't have the background to the problem that you do.
True laziness is hard work
| [reply] [Watch: Dir/Any] |
| [reply] [Watch: Dir/Any] |
So at least show us samples of the two input files (or file and sample array contents), and what you expect to see as a result.
You imply that you already have code that populates the array and maybe even a hash, so show us that code.
As an aside, if you are so new to Perl, and I guess to programming generally, where did you learn words like hash, array, function and regex?
True laziness is hard work
| [reply] [Watch: Dir/Any] |