in reply to Re^4: how to use the values of the first hash to be the keys for the second hash
in thread how to use the values of the first hash to be the keys for the second hash

You included the use Data::Dump qw[ pp ]; from my code into yours;

but then you threw away the pp \%newhash; which I used to produce the output:

C:\test>junk { key1 => "val5,val6,val7,val8,val9", key2 => "val3" }

If, after populating your two hashes: %h1 & %h2, you used the same tool to dump them to the screen before trying to use them:

pp \%h1; pp \%h2;

You could check whether you have populated them correctly.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

RIP Neil Armstrong

div