in reply to Re^2: Fetching Web Page and covert to text
in thread Fetching Web Page and covert to text

The write-up on LWP::Simple::get says:
You will not be able to examine the response code or response headers (like 'Content-Type') when you are accessing the web using this function. If you need that information you should use the full OO interface (see LWP::UserAgent).
So if I was you, I'd follow that suggestion.
  • Comment on Re^3: Fetching Web Page and covert to text