Microsoft Windows XP [Versión 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\Usuario Autorizado>cd escritorio
C:\Documents and Settings\Usuario Autorizado\Escritorio>perl pod2pdf.pl mechanize.pm
Can't locate PDF/API2.pm in @INC (@INC contains: C:/Perl/lib C:/Perl/site/lib .) at pod2pdf.pl line 113.
BEGIN failed--compilation aborted at pod2pdf.pl line 113.
Argument "" inst numeric in addition (+) at pod2pdf.pl line 1092 <$in_fh> line 2621.
WWW::Mechanize
-
Handy
web
browsing
in
a
Perl
object
Version
1.30
,
or
Mech
for
short,
helps
you
automate
interaction
with
a
website.
It
supports
performing
a
sequence
of
page
fetches
including
following
links
and
submitting
forms.
Each
fetched
page
is
parsed
and
its
links
and
forms
are
extracted.
A
link
or
a
form
can
be
selected,
form
fields
can
be
filled
and
the
next
page
can
be
fetched.
Mech
also
mPaegcehanize.pm
1
NAME
VERSION
SYNOPSIS
WWW::Mechanize
follow_link
submit_form
use
WWW::Mechanize;
my
$mech
=
WWW::Mechanize->new();
$mech->get(
$url
);
$mech->follow_link(
n
=>
3
);
$mech->follow_link(
text_regex
=>
qr/download
this/i
);
$mech->follow_link(
url
=>
’http://host.com/index.html’
);
$mech->submit_form(
form_number
=>
3,
fields
=>
{
username
=>
’mungo’,
password
=>
’lost-and-alone’,
}
);
$mech->submit_form(
form_name
=>
’search’,
fields
=>
{
query
=>
’pot
of
gold’,
},
button
=>
’Search
Now’
);
use
Test::More;
like(
$mech->content(),
qr/$expected/,
"Got
expected
content"
);
$mech->back();
$mech->find_link(
n
=>
Test::HTML::Lint
WWW::Mechanize
LWP::UserAgent
LWP::UserAgent
Usuarios navegando por este Foro: No hay usuarios registrados visitando el Foro y 14 invitados