Don't ask to ask, just ask | |
PerlMonks |
Need to get hash of arraysby chandantul (Scribe) |
on May 14, 2021 at 05:54 UTC ( [id://11132563]=perlquestion: print w/replies, xml ) | Need Help?? |
chandantul has asked for the wisdom of the Perl Monks concerning the following question: Hello Smart monks, I have the data looks like below in separate columns and i will need to get the unique values of columns A and assign multiple values of column B Please check below data structure
I will need to assign all corrosponding values of Column B to the unique value of Column A , This will be looks like below
I have tried by below Hash mapping but its coming with one to one mapping but i will need one to multi mappings @hash4{@cellp} = [@cellq];Code output
Can you please help with proper assignment?
Back to
Seekers of Perl Wisdom
|
|