If you need to automate web tasks, WWW::Mechanize is the way to go. It has an interface much like a command line browser. The code for your problem would be like the following :
use strict;
use WWW::Mechanize;
my $agent = WWW::Mechanize->new();
$agent->get('http://webpagedirectory/web.html');
but as long as you only need to request that one page once a day, LWP::Simple is even simpler :
use strict;
use LWP::Simple;
get("http://webpagedirectory/web.html");
Both modules can be found on the http://www.cpan.org and installed through perl -MCPAN -e "install LWP::Simple" respective perl -MCPAN -e "install WWW::Mechanize".
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
|