Re: WWW::Mechanize cannot find form.

[email protected]
Newsgroups gmane.comp.lang.perl.modules.lwp
Organization http://groups.google.com
Message-ID <[email protected]>
Oops, I meant to reply here, BTW; GMail made it look like an e-mail
directly from you.

Sorry about that; I didn't mean to e-mail you off the newsgroup.

It looks like get() is not failing.  Here's my code:

#!/usr/local/bin/perl -w

use strict;
use WWW::Mechanize;

my $robot = WWW::Mechanize->new();
my $url =
"https://register.broadspire.com/reg/reg_system.cgi?action=bulk_order";
$robot->get($url);

$output = ($robot->content());
print "\n$output\n";

It successfully prints all of the HTML from that webpage.

Is there some way I can get WWW::Mechanize to print a list of forms on
a page?  Say, with $mech->forms(); somehow?  Right now, I try it and it
just gives me something that looks like this:

HTML::Form(HASH8x06886A8)

I haven't quite figured out how to convert that into usable output
either.

I am a novice at perl coding to bare with me if I'm making silly
mistakes.


Thanks again,
Dairenn
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.