|
NAMEWWW::Mechanize::CGI - Use WWW::Mechanize with CGI applications. SYNOPSIS use CGI;
use WWW::Mechanize::CGI;
# Using a external CGI application
$mech = WWW::Mechanize::CGI->new;
$mech->cgi_application('/path/to/cgi/executable.cgi');
$response = $mech->get('http://localhost/');
# Using a inline CGI callback
$mech = WWW::Mechanize::CGI->new;
$mech->cgi( sub {
my $q = CGI->new;
print $q->header,
$q->start_html('Hello World'),
$q->h1('Hello World'),
$q->end_html;
});
$response = $mech->get('http://localhost/');
DESCRIPTIONProvides a convenient way of using CGI applications with WWW::Mechanize. METHODS
SEE ALSOAUTHORChristian Hansen, "ch@ngmedia.com" LICENSEThis library is free software. You can redistribute it and/or modify it under the same terms as perl itself.
|