Thanks for the reply. For the sake of brevity, I omitted parts of the program, including the section where I declare my variables. Thanks to all here, I ALWAYS use strict and -w! =)
However, your suggestions produce the exact same results as my code. ++, nonetheless!
update: typo
update 2: Well, I cut 'n pasted again, and lo' and behold it works!