in reply to Re^3: sort a hash with split values
in thread sort a hash with split values
Perhaps that was a little harsh, the OP said they did not understand it and was trying to get it to work. And you mocked the followup response in the chatterbox.
"Age is nothing more than an inaccurate number bestowed upon us at birth as just another means for others to judge and classify us"
sulfericacid
For those reasons I had to downvote you. We should be a little more supportive to the little people :)
Back to the OP, all you need to change is
tomap { [ $_, (split/:/,$hash{$_})[1] ] }
map { [ $_, (split/:/,$hash{$_})[2] ] }
"Age is nothing more than an inaccurate number bestowed upon us at birth as just another means for others to judge and classify us"
sulfericacid
In Section
Seekers of Perl Wisdom