>>>>> "Michael" == Michael A Chase <[EMAIL PROTECTED]> writes:

Michael> By call ing HTML::Parser's new(), you are creating a new object, not adding
Michael> the HTML::Parser information.  You also have to bless $self into something
Michael> before you can use "$self->" Use this instead:

Michael> sub new {
Michael>    my $proto = shift;
Michael>    my $class = ref( $proto ) || $proto;
Michael>    my $self   = bless {}, $class;

Michael>    $self -> SUPER::init(@_);
Michael> }

No, that's not it.  $self->SUPER::new(@_) should work fine if $self is
a classname (string).  Try a different answer.

I'm not sure what the answer is, but that's not it. I was pondering it
for a few minutes before I gave up, seeing that I'd have to try it
myself, which I don't have time for since I'm heading out to catch a plane
in about 15 minutes.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

Reply via email to