in reply to SaveAs ole Explorer

If all you're after is retrieving pages from the web, there are many other alternatives :

LWP::Simple

As long as you need only one page, it's hard to beat LWP::Simple :

use strict; use LWP::Simple; my $url = 'http://www.google.com'; mirror($url,'f:/test.html');

WWW::Mechanize

If you need something that feels more like a browser, it's hard to surpass WWW::Mechanize, as it has "open" and "click" methods that take link names or link numbers as arguments :

use strict; use WWW::Mechanize; my $url = 'http://www.google.com'; my $agent = WWW::Mechanize->new(); $agent->get($url); $agent->open('Images'); print $agent->content();

If your path through the pages is more complex, my module WWW::Mechanize::Shell can help you with the development of your WWW::Mechanize script.

perl -MHTTP::Daemon -MHTTP::Response -MLWP::Simple -e ' ; # The $d = new HTTP::Daemon and fork and getprint $d->url and exit;#spider ($c = $d->accept())->get_request(); $c->send_response( new #in the HTTP::Response(200,$_,$_,qq(Just another Perl hacker\n))); ' # web

Replies are listed 'Best First'.
Re: Re: SaveAs ole Explorer
by Anonymous Monk on May 30, 2003 at 13:53 UTC
    I think you meant follow(), open() is not a valid WWW::Mechanize method, at least not in the publically available versions.