http://www.perlmonks.org?node_id=62784


in reply to XML::Parser Tutorial

This is nice, but I would rather now how to use XML::Parser by subclassing it. All of my attempts to do this ended up in very unclean, OOP-unfriendly code. I ended up with storing results in package-global variables rather than object attributes. This is both ugly and thread-unsafe.

Is there some clean way how to subclass XML::Parser?