in reply to Re: LWP::Simple Empty File
in thread LWP::Simple Empty File
Thanks for the quick response. I added the status_message snippet and get "OK". This works fine on my Linux machine but is giving me an empty file on Windows 7 machine. I installed Strawberry Perl 5.10.1.5 and have version LWP 5.837. I am sure it is something stupid that I am missing.
#!/usr/bin/perl use strict; use warnings; use LWP::Simple; my $rc = getstore('http://www.perlmeme.org', 'some_local_fi +le'); print status_message($rc), "\n"; getstore('http://www.perlmeme.org', 'some_local_file'); exit 0;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: LWP::Simple Empty File
by Marshall (Canon) on Mar 04, 2012 at 04:34 UTC | |
by idlemind (Initiate) on Mar 04, 2012 at 17:06 UTC | |
by Marshall (Canon) on Mar 04, 2012 at 17:43 UTC | |
by idlemind (Initiate) on Mar 04, 2012 at 19:26 UTC | |
by Marshall (Canon) on Mar 04, 2012 at 19:38 UTC | |
| |
|
Re^3: LWP::Simple Empty File
by GrandFather (Saint) on Mar 03, 2012 at 21:51 UTC |