/usr/share/perl5/Sys/Hostname/testall.pl is in libsys-hostname-long-perl 1.4-3.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | #!/usr/bin/perl -w
use strict;
use Test;
use lib '../lib';
use lib 'lib';
use Sys::Hostname::Long;
format STDOUT_TOP =
Method |Title |Result
-----------------|---------------------------------|---------------------------------------
.
my ($method, $title, $ret);
format STDOUT =
@<<<<<<<<<<<<<<<<|@<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<|@<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
$method, $title, $ret
.
$ret = hostname_long();
$method = "AUTOMATIC";
$title = "via " . $Sys::Hostname::Long::lastdispatch;
write;
foreach $method (Sys::Hostname::Long::dispatch_keys()) {
$title = Sys::Hostname::Long::dispatch_title($method);
$ret = (Sys::Hostname::Long::dispatcher($method) || "");
write;
}
|