Think about Loose Coupling | |
PerlMonks |
Redefining a method in XML::SAX::PurePerlby bobf (Monsignor) |
on Jul 31, 2009 at 18:04 UTC ( [id://784961]=perlquestion: print w/replies, xml ) | Need Help?? |
bobf has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to parse an XML doc with
The problem is, I don't know what line in the file caused the error. I found the method that generates that output (I think) in XML::SAX::PurePerl and tried to redefine it to print the input data. I added the following code to the bottom of my script:
Now, however, instead of displaying the warning message when the system hits the mystery line, I get a different error:
I thought I was using package appropriately, but I obviously changed more than I expected. I'm a bit rusty (haven't had much time to code lately) and I think I'm missing a fundamental concept. Whack away with the clue-stick, please. Thanks *Updated after additional debugging, per Re^2: Redefining a method in XML::SAX::PurePerl.
Back to
Seekers of Perl Wisdom
|
|