No.
Since $self is a blessed hashref, you can always use it, but be careful (a safe bet would be $$self{"\0_my_extra_args"} )
What exactly are you attempting to do?
Maybe you'd be better off using HTML::TokeParser::Simple.

update: Ah, I see. Are you going to be handling forms? I still say go with HTML::TokeParser::Simple, or possibly my HTML::LinkExtractor ;)

update: Look, this is interesting ;)

use JavaScript::SpiderMonkey; my $jS = JavaScript::SpiderMonkey->new(); # Initialize Runtime/Context $jS->init(); # create a new object, and set a method my $document = $jS->object_by_path("document"); $jS->function_set("write", \&Write , $document); $jS->function_set("writeln", \&WriteLn , $document); $jS->property_by_path("document.location.href"); # Execute some code my $rc = $jS->eval(q[ document.location.href = append("http://", "www.perlmonks.org"); document.write("URL is ", document.location.href); document.writeln("\nURL is ", document.location.href); function append(first, second) { return first + second; } ]); # Get the value of a property set in JS my $url = $jS->property_get("document.location.href"); print "the $url is\n"; $jS->destroy(); sub Write { print for @_; } sub WriteLn { print for @_; print "\n"; } __END__ URL is http://www.perlmonks.org URL is http://www.perlmonks.org the http://www.perlmonks.org is

____________________________________________________
** The Third rule of perl club is a statement of fact: pod is sexy.


In reply to (Javascript::SpiderMonkey)Re: Passing other variables to start handler in HTML::Parser by PodMaster
in thread Passing other variables to start handler in HTML::Parser by gnangia

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.