Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

warning from http modules?

by evinther (Initiate)
on Aug 03, 2012 at 08:43 UTC ( #985192=perlquestion: print w/ replies, xml ) Need Help??
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

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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://985192]
Approved by davido
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (13)
As of 2015-07-31 19:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (280 votes), past polls