in reply to XML::Parser SAX in Perl -> the handlers are not getting called
Start your debugging by eliminating those warning messages.***** Software Inventory Report ***** ------------------------------------- Use of uninitialized value $total_count in concatenation (.) or string + at Total software packages: Use of uninitialized value $total_out in subtraction (-) Use of uninitialized value $total_count in subtraction (-) Total software packages available: 0 Use of uninitialized value $total_count in concatenation (.) or string + at Total cost for pieces of software: 4996.99
Better yet... promote your warnings to errors:
use warnings FATAL => 'all';
Update: those warnings occur because you did not initialize those variables before you parse your XML file. Move the parsefile line after the variable declarations/initializations.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: XML::Parser SAX in Perl -> the handlers are not getting called
by axxo (Initiate) on Feb 01, 2011 at 06:26 UTC |