$ perl -le " use warnings; chomp; " Use of uninitialized value $_ in scalar chomp at -e line 1.
Read this if you want to cut your development time in half! / Use strict warnings and diagnostics or die
Basic debugging checklist
brian's Guide to Solving Any Perl Problem
... Re^8: How to use wxHtmlEasyPrinting (On debugging, verify everything, talk to teddybear ... and links and links
Re^3: highest value in hash (virtual teddybear)