in reply to
... something in the environment?
If you are able to run your code with the perl debugger, i suggest you let the debugger stop when the warning appears and then look at the values.
See here how to setup the debugger to do this:
Re: Debugging a program
Hexcoder
Comment on
Re: ... something in the environment?
In Section
Seekers of Perl Wisdom