http://www.perlmonks.org?node_id=985192

evinther has asked for the wisdom of the Perl Monks concerning the following question:

Hello Monks,
I'm a complete Perl newbie, so please bear with me ...
I've managed to create a simple script calling a simple website:
#-------------------------------------------- use HTTP::Request::Common qw(GET); use LWP::UserAgent; use strict; my $browser = LWP::UserAgent->new; $browser->credentials( 'myurl:8080', 'myrealm', 'myuser' => 'mypsw' ); my $response = $browser->get( 'http://myurl:8080/Organization', [ 'Depth' => '1' ] ); if ($response->is_success) { print $response->content; } else { print "Error: " . $response->status_line . "\n"; } #--------------------------------------------
... and i works and i get the expected reponse. However, when running the scipt in a Windows command prompti get a number of warnings (errors?) from the HTTP libs:
Use of uninitialized value $v in substitution (s///) at C:/strawberry/ +perl/site/lib/LWP/Protocol/http.pm line 182. Use of uninitialized value $v in concatenation (.) or string at C:/str +awberry/perl/site/lib/Net/HTTP/Methods.pm line 154. Use of uninitialized value $v in substitution (s///) at C:/strawberry/ +perl/site/lib/LWP/Protocol/http.pm line 182. Use of uninitialized value $v in concatenation (.) or string at C:/str +awberry/perl/site/lib/Net/HTTP/Methods.pm line 154.
Why is this, and does it matter?

using (32 bit):
LWP libwww v5.813
Perl strawberry v5.14.2.1

Thanks
Erik

Replies are listed 'Best First'.
Re: warning from http modules?
by Anonymous Monk on Aug 03, 2012 at 08:54 UTC
      ohhh.. thanks