http://www.perlmonks.org?node_id=1026333


in reply to Re^2: highest value in hash (key is not value)
in thread highest value in hash

Wow, I was trying to figure that out for the longest time and now that you pointed out what I was doing it's so obviouse. duh! Thanks everyone!

No problemo :)

I used the virtual teddybear method

Basically, I read your program aloud , in my head (virtual), until i said "highest becomes key if highest lessthan value"

Actually I said "highest is" but "becomes" sounds better -- I'm not very disciplined when it comes to speaking code

Also known as teddy bear debugging , mirror debugging, empty room debugging, talking to yourself, Rubber Duck method of debugging, say it out loud George, sing into that hairbrush ...