Sep 4, 2009, 8:12 AM
Post #4 of 4
Please, find attached an abridged version of my class.
Re: [FishMonger] XML::Parser inside a class
[In reply to]
The class has a contructor and three methods:
In this version, the three handlers aren't defined as class methods, as it neither worked. Are defined as 'standard' methods, but inside the .pm file.
The error I get when I call 'build_command' method, which calls the parser, is:
read error at /usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi/XML/Parser/Expat.pm line 469.
When I tried the handlers as a class methods, I added:
my $self = shift;
in the first line of the handlers, but I don't know if this causes a conflict with the parser, as the handler does not seem to expect that.
(This post was edited by dabeat on Sep 5, 2009, 1:09 AM)