Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
March 2, 2008, 4:12 pm
rate this thread
example using the module. I have no idea what's going on here so I'm
guessing. This appears in the code
my $handler = SaxHandler->new();
But there is no SaxHandler anywhere in the documentation ..... but
wait! Later in the code the author defines a package as in
and in this package are subroutines with names of the callbacks, the
SAX event handling routines, that SAX will call for each different XML
event (starting ending new final ....)
I had no idea a package name could be used in such a fashion. I
appreciate some short discussion of what's going on. Thanks.
Re: package_name->new(); a basic language queston
It probably just means that the author didn't think SaxHandler would be of
general enough interest to make it a stand-alone module. It is roughly
like an "Inner class" in Java.
-------------------- http://NewsReader.Com/ --------------------
The costs of publication of this article were defrayed in part by the
payment of page charges. This article must therefore be hereby marked
advertisement in accordance with 18 U.S.C. Section 1734 solely to indicate