strict wasn't used in this particular script, so I'll add that and see what happens.
The other items you mentioned were carefully checked.
I should mention that I'm working on a project converting older Perl code (which was converted from ColdFusion...), created by people who really don't know Perl all that well. I can barely get them to understand what a reference is, so getting them to use strict with any consistency is like pulling teeth.