Re: bug in URI::URL:url ?
Otis Gospodnetic (otisg@panther.middlebury.edu)
Sun, 29 Sep 1996 15:31:03 -0400 (EDT)
>
> >>>>> Otis Gospodnetic <otisg@panther.middlebury.edu> writes:
>
> >> if (!($ua->visited{'www.middlebury.edu'})) {
> ^ ^
> ^ ^
> if (!($ua->visited('www.middlebury.edu'))) {
> ^ ^
> ^ ^
> if (! $ua->visited('www.middlebury.edu') ) {
>
> otis> Does anybody actually have any code that uses this visited{} hash ??
>
> You have never told us which docs you're referrring to, so we can only
> guess. Please specify which docs you're talking about.
Hm, I thought I did, I guess I was wrong :)
Here, from LWP::RobotUA.pm
In addition these methods are provided:
=cut
#
# Additional attributes in addition to those found in LWP::UserAgent:
#
# $self->{'delay'} Required delay between request to the same
# server in minutes.
#
# $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
#
# $self->{'rules'} A WWW::RobotRules object
#
> FWIW, I cannot imagine what curlies should do there. With ordinay
> braces it looks simply like method calling. Haven't tried it either.
you mean something like $ua-visited('www.middlebury.edu') ?
That doesn't work either, the err. I get tells me that there is no method
called visited()
I hope this helps - I'm still stupid :(
Otis