in reply to LWP to download images, how to let LWP decide, wether it is an image or not?
hihi.
I haven't tested this yet myself, but since HTTP::Response is a subclass of HTTP::Message, you should be able to:
if ($res->content_type =~ /^image\//) { ...
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: LWP to download images, how to let LWP decide, wether it is an image or not?
by khippy (Scribe) on Oct 20, 2001 at 15:13 UTC | |
Re: Re: LWP to download images, how to let LWP decide, wether it is an image or not?
by Amoe (Friar) on Oct 20, 2001 at 15:09 UTC |
In Section
Seekers of Perl Wisdom