in reply to Undef and Unitialized Issue
There are a number of issues with your code, but I'll focus on your uninitialized warnings question.
Have you tried adding any debugging print statements to help track down the problem?
Use the Data::Dump or Data::Dumper module to dump each of the vars in the statement that is generating the warning to verify they contain the values you expect. For each var that is undefined/uninitialized, trace it back step-by-step until you find where it began to be undefined. Adjust the code at that point to handle it, which could mean to assign a default value or it could mean that you should move to the next iteration.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Undef and Unitialized Issue
by Pharazon (Acolyte) on Apr 02, 2015 at 14:46 UTC |