develooper Front page | perl.libwww | Postings from January 2006

Re: error

Thread Previous | Thread Next
Nigel Horne
January 24, 2006 05:31
Re: error
Message ID:
Gisle Aas wrote:
> Nigel Horne <> writes:
>>What are the circumstances under which this error appears, and what
>>can be done to avoid it?
>>"Use of uninitialized value in substitution iterator at /usr/share/perl5/ line 76."
> What kind of statement do you find at this line?  What version of
> do you have installed?

Man URI doesn't tell you the version, but running 'r' within CPAN shows
no updates available, so I must presume it is the most up to date

I have two calls to URI in my code, it's difficult to tell which
is causing the error at the moment, but there are few calls to URI
in the code so it can't be that difficult to see:

[njh@njh cgi-bin]$ fgrep URI search.cgi
use URI;
         require URI::URL;
                                         $newurl = URI->new_abs($newurl, 
                                 my $nexturl = URI->new_abs($1 . ".htm", 
                 $nexturl = URI->new_abs($nexturl, $base);
                         $title = $urltitles{$home} . ' (' . 
URI->new($url)->path . ')';

> --Gisle


Nigel Horne. Arranger, Adjudicator, Band Trainer, Composer, Tutor, 
NJH Music, Barnsley, UK.  ICQ#20252325

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About