in reply to picture of how an html file will render?
This question has been discussed a while ago in 'Rendering a Web Page'. In short, perl alone can't render it, but it should be possible with Image::Magick.