I'm trying to screen scape some information off the web. I anticipate that I'll want to have it multi-threaded.
As per Lincoln Stein's book, I'm using HTML::Parser and passing a function pointer (you can tell I'm a C programmer) to $parser->handler(start=> \&start, 'self,tagname, attr,text,skipped_text'); The problem is that I'm using a lot of non-local variables (what are they called, global?) in function start. As per Lincoln's example, start is a non-member function (not a method). It's just a stand alone function. I wish I could pass some parameters to my start function. I want each thread to have its own copy of those global variables. The documentation at http://search.cpan.org/~gaas/HTML-Parser-3.45/Parser.pm says "$p->handler(start => "start", 'self, attr, attrseq, text' ); This causes the "start" method of object $p to be called for 'start' events. The callback signature is $p->start(\%attr, [EMAIL PROTECTED], $text)." OK, that is news to me. Lincoln's example does not define start as a member function (method, I guess is the proper name). So if I could define start as a method, that would solve my problem. How do I do that? Do I have to inherit from HTML::Parser? Anyone got an example? Thanks, Siegfried -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>