develooper Front page | perl.libwww | Postings from July 2001

Uninitialized value from lwp-rget

From:
Blair Zajac
Date:
July 11, 2001 18:03
Subject:
Uninitialized value from lwp-rget
Message ID:
3B4CF19A.35260001@orcablue.com
This is with libwww 5.53.  When I run the following command:

lwp-rget		\
	--depth=3	\
	--hier 		\
	--iis		\
	--limit=100000	\
	--nospace	\
	--prefix=""	\
	http://www.yahoo.com/

I get these errors:

Use of uninitialized value in concatenation (.) or string at
/home/blair/opt-i386-linux/perl5.6.1/bin/lwp-rget line 384.

The following patch fixes this:

--- lwp-rget.FCS        Wed Apr 25 13:19:14 2001
+++ lwp-rget    Wed Jul 11 16:34:15 2001
@@ -370,6 +370,8 @@
 
     $url = unprotect_frag_spaces($url);
 
+    $quote = '' unless defined $quote;
+
     return $pre . $quote . $url . $quote;
 }

However, I also get these errors:
./index017.html
./YYY:56444/srt:0.html
Path might look like scheme, './' prepended at
/home/blair/opt-i386-linux/perl5.6.1/lib/site_perl/5.6.1/URI/WithBase.pm
line 93

Regards,
Blair



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About