HTML::LinkExtor request...
Michael Alan Dorman (mdorman@calder.med.miami.edu)
Sat, 13 Jul 1996 16:06:39 -0400
I've been working with HTML::LinkExtor over the last couple of days,
and I must say that it's worked well (though the docs mention
parsefile() as a method, though it should be parse_file(), right?).
In fact, I've been converting my link-checking program to use the
whole libwww-perl suite in place of the home-grown routines I'd been
using before, and they've contributed a lot in the way of
completeness. I commend the authors on their work.
My one request would be that the links() method clear the internal
list of links. Given this behavior, a user may instantiate a single
HTML::LinkExtor, and then just repeatedly call parse_file() and
links() whenever necessary. I've done this by on my system by
replacing the last line of the links() method with:
splice ( @{$self->{'links'}}, 0, $#{$self->{'links'}} );
I understand that this might not be appropriate default behavior, but
that could be solved by allowing a boolean parameter to specify
whether to clear the array.
Cheers,
Mike.
--
Michael Alan Dorman Head of Systems
mdorman@caldmed.med.miami.edu Louis Calder Memorial Library
(305) 243-5530 University of Miami School of Medicine