Subject: | warnings on png image |
Date: | Fri, 05 Mar 2010 07:21:59 +1100 |
To: | bug-URI-Title [...] rt.cpan.org |
From: | Kevin Ryde <user42 [...] zip.com.au> |
With URI::Title 1.82 and recent debian i386 perl 5.10.1 the program
foo.pl below prints
Use of uninitialized value $found_title in substitution (s///) at /usr/share/perl5/URI/Title/HTML.pm line 85.
Use of uninitialized value $found_title in substitution (s///) at /usr/share/perl5/URI/Title/HTML.pm line 86.
where I hoped for something about that image.
Nosing around it seems File::Type says "image/x-png" instead of
"image/png". Dunno if that's a bug or a feature, but it seems to mean
URI::Title::Image is not applied.
use strict;
use warnings;
use URI::Title 'title';
print title('http://www.perl.org/i/camel_head.png'),"\n";