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\//) { ...
In reply to Re: LWP to download images, how to let LWP decide, wether it is an image or not?
by oneiros
in thread LWP to download images, how to let LWP decide, wether it is an image or not?
by khippy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |