Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re^4: sort a hash with split values

by sulfericacid (Deacon)
on Jun 21, 2006 at 18:38 UTC ( #556749=note: print w/ replies, xml ) Need Help??

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.

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

map { [ $_, (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"


Comment on Re^4: sort a hash with split values
Select or Download Code
Replies are listed 'Best First'.
Re^5: sort a hash with split values
by shmem (Canon) on Jun 21, 2006 at 18:53 UTC
    That wasn't harsh, but stern. You should have seen my eyes whilst typing. I am mild and generous.

    If the OP went home gladly to their editor and typed in the counsel, I feel honored by their great confidence for what cometh from the monastery.

    But if they then frobs it instead of coming back asking "how's it works?", my eyes get rolling and them smashed. But not without further advice.

    Sighing at the chatterbox is not mocking, fellow monk.

    _($_=" "x(1<<5)."?\n".q/)Oo.  G\        /
                                  /\_/(q    /
    ----------------------------  \__(m.====.(_("always off the crowd"))."
    ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://556749]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (3)
As of 2015-11-29 20:03 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (753 votes), past polls