in reply to basic perl question
Without seeing the code itself it's hard to say, but the first thing I'd check is that everything's declared with "my" (or "our", or whatever is appropriate). Failing that, check that your variables don't go out of scope before you use them.