Some of this you're going to have to debug yourself -- PM is not a line-by-line debugging service. You're already using "strict" and "warnings", which is good-- both are very good programming practices and will help you greatly. You might also want to try "use diagnostics" or look up the meaning of the warning you're getting in perldiag.
-xdg
Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.
| [reply] [d/l] |