
How can I get the title from HTML file?
On Sat, 04 Apr 1998 09:07:04 -0500, "Seong Y. Kim"
Quote:
>Hi, everyone!!!!
>I am trying to get a title from one HTML file. This is my subroutine
>that I did.
The Module HTML::HeadParser is your best bet if you only want the
title (or other <HEAD> block stuff such as META tags and so on).
However to get at the whole file you will be better to use
HTML::Parser although this may enmesh you in the Object thing more
than you might wish at the present time. I have an example of the
modules use in a fairly crude and only partially finished HTML
Beautifier at:
http://www.btinternet.com/~gellyfish/resources/hteauty.pl
I wouldnt take it too seriously as a program though.
/J\
/J\
Jonathan Stowe
See the MetaFaq at http://www.btinternet.com/~gellyfish/resources/wwwfaq.htm