Home: Perl Programming Help: Intermediate:
XML::Parser and Moose


Sep 24, 2011, 5:36 AM

Views: 2404
XML::Parser and Moose

Working on an app using Moose and XML::Parser package.
I have written a class foo that uses info from an xml file to initiate itself.

I create an instance of the XML::Parser class and set handlers for that instance.

$xmlParser -> setHandlers(Start => \&_new_info, End => \&_close_info);

Now I need to access some data in the foo class from these handlers but don't quite know how.
Anyone out there who encountered this before?