in reply to Debugging help please?

Have you actually tried bringing this up in the perl debugger? You can get a lot of information about the state of things approaching the error using the debugger.

In this particular case, I would probably put a $DB::single=1; near where you think it's going awry and then check out the values at that point using the debugger's inspection commands.

See an old thread of mine for more information: Neat Debugger tricks

Hazah! I'm Employed!