Hours and hours to find that I declared a variable wrong. Proof that use strict; is probably a good idea.