Gossamer Forum
Quote Reply
Help
I use LWP::Simple download's picture,How to save?
Help me!
Code:
use LWP::Simple;
$tp3 = "http://www.yahoo.com/aa.jpg";
$ppp = get ($tp3);

The code of next can not worked:
Code:
open (PIC,">aa.jpg");
print PIC $ppp;
close(PIC);


[This message has been edited by boysss (edited September 17, 1999).]
Quote Reply
Re: Help In reply to
Hmm... dunno, but did you try a print $ppp right after your get?

Is it realy getting the image is what i want to know...
Quote Reply
Re: Help In reply to
But I can save the picture at hope!
The code of next can not the correct storage pattern:
Code:
open (PIC,">aa.jpg");
print PIC $ppp;
close(PIC);
I hope to save the picture in my server!

Thanks