J
Jeffrey J. Kosowsky
I have been having trouble getting the HTML::Form library to work
under Fedora Core 1 (perl 5.8.1-92 with perl-libwww-perl-5.65-6). For
some reason, the function HTML::Form->Parse doesn't return any forms
for me.
For example, the following simple perl script:
#! /usr/bin/perl
use HTML::Form;
use HTTP::Request;
use LWP;
my $ua = new LWP::UserAgent;
my $uri="http://www.google.com";
my $req = HTTP::Request->new(GET => $uri);
my $res = $ua->request($req);
print $res->content;
my $form = HTML::Form->parse($res->content, $res->base());
print "Form: ${form}\n";
Returns the source of the www.google.com page but fails to return the
obvious embedded form.
The only potential problem I see is that the library Form.pm is stored
under: /usr/lib/perl5/vendor_perl/5.8.0/HTML/Form.pm (rather than 5.8.1)
I did not have any problems with this previously under RH8.0 with perl
5.8.0-88 and perl-libwww-perl-5.65-2.noarch.rpm)
Has anything changed in perl? Am I doing something wrong here? Any
suggestions on what might be going on?
Thanks,
Jeff
under Fedora Core 1 (perl 5.8.1-92 with perl-libwww-perl-5.65-6). For
some reason, the function HTML::Form->Parse doesn't return any forms
for me.
For example, the following simple perl script:
#! /usr/bin/perl
use HTML::Form;
use HTTP::Request;
use LWP;
my $ua = new LWP::UserAgent;
my $uri="http://www.google.com";
my $req = HTTP::Request->new(GET => $uri);
my $res = $ua->request($req);
print $res->content;
my $form = HTML::Form->parse($res->content, $res->base());
print "Form: ${form}\n";
Returns the source of the www.google.com page but fails to return the
obvious embedded form.
The only potential problem I see is that the library Form.pm is stored
under: /usr/lib/perl5/vendor_perl/5.8.0/HTML/Form.pm (rather than 5.8.1)
I did not have any problems with this previously under RH8.0 with perl
5.8.0-88 and perl-libwww-perl-5.65-2.noarch.rpm)
Has anything changed in perl? Am I doing something wrong here? Any
suggestions on what might be going on?
Thanks,
Jeff