MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16357.17540.111509.865831@xxxxxxxxxxxxxxxxx> X-Mailer: VM 7.18-rfhacked under Emacs 21.3.1 From: dsdsfds To: fedora-list@xxxxxxxxxx Subject: HTML::Form->Parse (Perl) not working under Fedora Core 1 Date: Sun, 21 Dec 2003 01:58:12 -0500 --text follows this line-- 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. If instead, I make the last line: join(" ", $form->form); I get the corresponding error message: "Can't call method "form" on an undefined value at ./myscript.pl line 14" which occurs presumably because no form is returned! 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) In fact, the above perl scripts still work when under Fedora Core 1 I 'chroot' to my old RH8.0 installation. It thus seems to be that something is wrong with the Fedora Core 1 perl environment Has anything changed in perl? Does this script fail similarly on other Fedora Core 1 systems? Any suggestions on what might be going on? Thanks, Jeff