Hello to all,
HAving a hash where its keys are associated with arrays like below:
myHash = {"A"=>["HYU"], "B"=>["TU6"], "C"=>["11", "09","88","2"], "D"=>["01", "11"]}
Each key represent one header and the arrays elements represent the values for each header.
How to print each key in different column separated by comma "," and below each header print all the values of
corresponding array. Since some arrays have more elements, for the arrays that have less elements print blank
like below.
A,B,C,D
HYU,TU6,11,1
,,9,11
,,8,
,,2,
Thanks in advance for any help.