in reply to XML::Parser problems
you are printing the object as string. That is why you are getting 'XML::Parser::Expat=HASH(0x819a53c)'.
If you want to get the current row(i.e line) use method current_line.
Regards,Murugesan Kandasamy