GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
URI::Title(3) User Contributed Perl Documentation URI::Title(3)

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

version 1.904

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

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:

...

So, let's solve these issues once.

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

WWW::GetPageTitle - similar this module, but just handles web pages. The author of that module suggests you should use "URI::Title".

Embedded title metadata of png files can be extracted if you have installed either Image::ExifTool or Image::PNG::Libpng.

Many, many, many things. Still unimplemented:

Tom Insam <tom@jerakeen.org>, original author, 2004-2012.

Philippe Bruhat (BooK) <book@cpan.org>, maintainer, 2014.

This software is copyright (c) 2004 Tom Insam.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

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.

2023-02-08 perl v5.40.2

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.