L
laurent
Hi there,
I picked up this script below in the newsgroup, and i noticed that
it works but also generate an warning, -or a complaining message ;
How could it be improved ? by my self i added line 3, but without
success :
The script is here (it returns headers of an http server)
[laurent@joanna_2 laurent]$ cat !*
cat w_perl.pl
#!/usr/local/bin/perl -w
use LWP::Simple;
my @response = (); <---added line
# Send a head request and populate the array
@response = head("http://www.lemonde.fr/");
print "@response\n";
Thx,
laurent
I picked up this script below in the newsgroup, and i noticed that
it works but also generate an warning, -or a complaining message ;
How could it be improved ? by my self i added line 3, but without
success :
The script is here (it returns headers of an http server)
[laurent@joanna_2 laurent]$ cat !*
cat w_perl.pl
#!/usr/local/bin/perl -w
use LWP::Simple;
my @response = (); <---added line
# Send a head request and populate the array
@response = head("http://www.lemonde.fr/");
print "@response\n";
Thx,
laurent