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 ...
- Read before typing. Explain your code to someone else. Chapter 5, Debugging , The Practice of Programming
- Re: Not an awk question (Rubber Duck method of debugging
- Pronounceable syntax or beloved punctuation?
- How do you pronounce variable names?
- How do I pronounce all this stuff
- How do you pronounce "::"?
- I know what I mean. Why don't you?
- brian's Guide to Solving Any Perl Problem
- Victor Borge Phonetic Pronunciation - YouTube
- Creating Passionate Users: Rubberducking and Creativity
- Perl 5 Internals ASCII Pronunciation Guide
- Re: Perl Best Practices for naming variables, About the use of the plural form for the name of variables, Re: What are the most basic, generic aspects of programming?
- Another link dump Re^8: How to use wxHtmlEasyPrinting (On debugging, verify everything, talk to teddybear ... and links and links