Re: URI.pm error

Nigel Horne <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.lwp
Organization NJH Music
Message-ID <[email protected]>
Gisle Aas wrote:
> Nigel Horne <[email protected]> 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/URI.pm line 76."
> 
> 
> What kind of statement do you find at this line?  What version of
> URI.pm 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
version.

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;
         $URI::ABS_REMOTE_LEADING_DOTS = 1;
         $URI::ABS_REMOTE_LEADING_DOTS = 1;
                                         $newurl = URI->new_abs($newurl, 
$webdoc->base);
                                 my $nexturl = URI->new_abs($1 . ".htm", 
$url);
                 $nexturl = URI->new_abs($nexturl, $base);
                         $title = $urltitles{$home} . ' (' . 
URI->new($url)->path . ')';

> --Gisle

-Nigel

-- 
Nigel Horne. Arranger, Adjudicator, Band Trainer, Composer, Tutor, 
Typesetter.
NJH Music, Barnsley, UK.  ICQ#20252325
[email protected] http://www.bandsman.co.uk
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.