Hi there,
Thanks for the help in getting to know the what the url points to..
As suggested, with the help of LWP::UserAgent i now got the content type the pages points to..
use LWP::UserAgent;
my $url = "http://de.arxiv.org/pdf/1106.3541";
print LWP::UserAgent->new->head($url)->headers->content_type()
The above code is what the suggestion i got and worked..
Now my question is, the 3rd line in the code prints the content-type of the given url. How do i access the values of content_type(). If i want to access it.. I mean i want to use that as a input for another if condition..
Any suggestion