File: title.pl

package info (click to toggle)
liburi-title-perl 1.904-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 188 kB
  • sloc: perl: 533; makefile: 6
file content (11 lines) | stat: -rwxr-xr-x 187 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/perl
use warnings;
use strict;
use lib 'lib';
use URI::Title qw(title);
use Encode;

my $title = title(shift);
binmode STDOUT, ":utf8";
print $title || 'no title';
print "\n";