Re: lwp-request
Bill Mills-Curran (bcurran@clariion.com)
Fri, 13 Nov 1998 08:19:30 -0500 (EST)
Daryl,
I found the following in my HTML::Parse.pm file. It indicates that
lwp should no longer be using this module.
Bill
****************************************************************
package HTML::Parse;
# $Id: Parse.pm,v 2.4 1997/12/05 16:42:13 aas Exp $
=head1 NAME
HTML::Parse - Depreciated
=head1 SYNOPSIS
use HTML::Parse;
$h = parse_htmlfile("test.html");
print $h->dump;
$h = parse_html("<p>Some more <i>italic</i> text", $h);
$h->delete;
print parse_htmlfile("index.html")->as_HTML; # tidy up markup in a file
=head1 DESCRIPTION
I<Disclaimer: This module is only provided for backwards compatibility
with earlier versions of this library. New code shold use the
HTML::Parser and HTML::TreeBuilder modules directly.>
The C<HTML::Parse> module provides functions to parse HTML documents.
There are two functions exported by this module:
****************************************************************
On Fri, 13 Nov 1998, Daryl Sayers wrote:
>
> I may have been a bit vauge on my problem. I will try and clarify.
> I am using perl 5.004. I downloaded libwww-5.36, libnet-1.0605,
> MIME-Base64-2.08, MD5-1.7.tar.gz and HTML-Parser-2.20.
> I built them all without a problem.
>
> When I run lwp-request I get an error:
>
> bash$ lwp-request -o text http://www.au.freebsd.org/
> Can't locate HTML/Parse.pm in @INC (@INC contains: /usr/local/lib/perl5/i386-bsdos/5.00401 /usr/local/lib/perl5 /usr/local/lib/perl5/site_perl/i386-bsdos /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/i386-bsdos .) at /usr/local/bin/lwp-request line 416.
>
> Looking at lwp-request I see it calls
> require HTML::Parse;
> my $html = HTML::Parse::parse_html($response->content);
>
> The HTML-Parser-2.20 module has a HTML::Parser but no HTML::Parse.
>
<snip>