in reply to Re: Matching hash keys from different hashes and utilizing in new hash
in thread Matching hash keys from different hashes and utilizing in new hash

Thanks, this was very helpful. I forgot to add that I wanted to make a new hash with only the common keys, and their associate column values (concatenated), but I believe I've got it. The reason for doing so was to split the columns apart in a subroutine I have for comparing the column values per key.

  • Comment on Re^2: Matching hash keys from different hashes and utilizing in new hash

Replies are listed 'Best First'.
Re^3: Matching hash keys from different hashes and utilizing in new hash
by Laurent_R (Canon) on Oct 22, 2017 at 07:31 UTC
    Then you can just populate your new hash at the place near the end of the code where there is the print statement.

    But maybe you don't even need to populate a new hash since, at this point in the code, you have the two keys and the two strings representing the other columns; so you could quite probably make the comparison (or call the subroutine making the comparison) just there, instead of the print statement.