Think about Loose Coupling | |
PerlMonks |
Re: Re: LWP to download images, how to let LWP decide, wether it is an image or not?by uwevoelker (Pilgrim) |
on Oct 20, 2001 at 17:12 UTC ( [id://120243]=note: print w/replies, xml ) | Need Help?? |
I like the idea of verifying the file format. You could use Image::Size to check for pictures. And maybe you need the filesize for the HTML-img-Tag (width and height).
Also I would open the OUTFILE right before the PRINT-statement. If the picture is not valid you end in having created a zero-length file. Good bye, Uwe
In Section
Seekers of Perl Wisdom
|
|