Thanks for the reply; I figured out what my problem was.
If there's one thing I've learned from frequenting PM.org, it's to always use strict and -w. The snippet of code I posted was just that...a snippet. The rest of the code does contain use strict and -w.
Either way, I found my careless error. Thanks for the post.