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.
In reply to Re: XML::Parser SAX in Perl -> the handlers are not getting called
by toolic
in thread XML::Parser SAX in Perl -> the handlers are not getting called
by axxo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |