Hi I have one row of data from a database as @data.
I need to sort the items available in $data[1], 2,3,4,5,6,7,8 positions
For example if the data are as below:
man, women, man, man, women, man, man, man in their respective position. Then I want my output to be as below:
134678: man
25: woman
How do I do this? I am not so familiar with perl hash as a beginner. It would be of great help if someone helps me out.
Thanks and Regards
I need to sort the items available in $data[1], 2,3,4,5,6,7,8 positions
For example if the data are as below:
man, women, man, man, women, man, man, man in their respective position. Then I want my output to be as below:
134678: man
25: woman
How do I do this? I am not so familiar with perl hash as a beginner. It would be of great help if someone helps me out.
Thanks and Regards
Comment