PugSA has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks
I've got the following piece of code that fetches a file, when the file is recieved it is only 898 bytes big does not matter what type of file or what size it previously was.
Does anyone know where I set the size limit (If that is the problem)
use LWP::Simple; my $url = "http://192.168.0.214/dbconnect/rabbithole/instructions.tx +t"; # If we get the header, the image file exists if (!head($url)) { warn "sorry, $url doesn't exist\n"; } else { # it exists, so get it and store it getstore($url,"instructions.txt") or warn "can't get image: $!"; # Print a progress message print "$url successfully stored\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: size limit on getstore
by rob_au (Abbot) on Nov 08, 2005 at 13:09 UTC | |
by PugSA (Beadle) on Nov 09, 2005 at 08:30 UTC | |
|
Re: size limit on getstore
by monkey_boy (Priest) on Nov 08, 2005 at 14:21 UTC |