(and if you don't have Mojolicious installed, LWP::UserAgent does it as well:)
use LWP::UserAgent; my $url = "http://de.arxiv.org/pdf/1106.3541"; print LWP::UserAgent->new->head($url)->headers->content_type()
In reply to Re^2: LWP::Simple to judge the url
by Corion
in thread LWP::Simple to judge the url
by sarvan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |