I am trying to get an image from an HTTP server using Perl.
I have the full file url and I'm trying to use
my $data = LWP::Simple::get $params{URL}; my $filename = "image.jpg"; open (FH, ">$filename"); print FH $data; close (FH);
Now, logically, at least it should work for me. But the files are a little different sizes, and I can not understand why.
Help!
perl image lwp
Xetius
source share