URI::Title(3pm) - phpMan

Command: man perldoc info search(apropos)  


URI::Title(3pm)                User Contributed Perl Documentation                URI::Title(3pm)



NAME
       URI::Title - get the titles of things on the web in a sensible way

SYNOPSIS
         use URI::Title qw( title );
         my $title = title('http://microsoft.com');
         print "Title is $title\n";

DESCRIPTION
       I keep having to find the title of things on the web. This seems like a really simple
       request, just get() the object, parse for a title tag, you're done. Ha, I wish. There are
       several problems with this approach:

       What if the resource is on a very slow server? Do we wait for ever or what?
       What if the resource is a 900 gig file? You don't want to download that.
       What if the page title isn't in a title tag, but is buried in the HTML somewhere?
       What if the resource is an MP3 file, or a word document or something?
       ...

       So, let's solve these issues once.

METHODS
       only one, the title(url) method. Call it with an url, get the title if possible, undef if
       it wasn't. Very simple.

TODO
       Many, many, many things. Still unimplemented:

       Get titles of MP3 files, Word Docs, PDFs, etc.
       Configurable.. well, anything, in fact. Timeout would be a good start.
       Better error reporting.

CREDITS
       Invented because of a conversation with rjp, who contributed some eyeball-melting and as-
       yet-unused code to get titles from MP3s and PDFs, and hex, who has also solved the
       problem, and got bits done in a nicer way than I did.

POD ERRORS
       Hey! The above document had some coding errors, which are explained below:

       Around line 50:
           You forgot a '=back' before '=head1'



perl v5.10.0                                2008-06-19                            URI::Title(3pm)

Generated by $Id: phpMan.php,v 4.49 2006/02/26 13:18:18 chedong Exp $ Author: Che Dong
On Apache
Under GNU General Public License
2012-05-25 04:28 @38.107.179.240 Crawled by CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
Valid XHTML 1.0!Valid CSS!