$ua->visited() in RobotUA.pm ?

Otis Gospodnetic (otisg@panther.middlebury.edu)
Thu, 26 Sep 1996 20:58:08 -0400 (EDT)


Hello,

I believe I have a problem....
this is what I read from LWP::RobotUA.pm module

# $self->{'visited'}   An hash where the keys are server names and the
#                      value is a hash with these values:
#                          'last'   last fetch time
#                          'count'  number of documents fetched

So I try to use that in my script, like this...

    if (!$ua->visited($u->host)) {				# line 44 !!!
        &RobotsTxt;
    }
    elsif ($robotsrules->allowed($url)) {
        $req = new HTTP::Request ('GET',$url,$header);
    }

$ua coems from new LWP::RobotUA 'robot','owner';
$u comes from $u = URI::URL::url($url);

the error I am getting is this:

Can't locate auto/LWP/RobotUA/visited.al in @INC at .......line 44

And really, looking at LWP::RobotUA.pm I don't see any method called visited,
although it is mentioned in LWP::RobotUA.pm

so what do I do ?
How can I easily figure out if I visited a certain host already or not ?

Thanks !

Otis
-- 
The eZines Database	 - 	<URL:http://www.dominis.com/Zines/>
eBooks Dominis Bookstore -	<URL:http://www.booksite.com/cgi-bin/zines>