/usr/lib/x86_64-linux-gnu/perl5/5.22/auto/NetAddr/IP/short.al is in libnetaddr-ip-perl 4.078+dfsg-1build1.
This file is owned by root:root, with mode 0o644.
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 | # NOTE: Derived from blib/lib/NetAddr/IP.pm.
# Changes made here will be lost when autosplit is run again.
# See AutoSplit.pm.
package NetAddr::IP;
#line 855 "blib/lib/NetAddr/IP.pm (autosplit into blib/lib/auto/NetAddr/IP/short.al)"
sub short($) {
my $addr = $_[0]->addr;
if (! $_[0]->{isv6} && isIPv4($_[0]->{addr})) {
my @o = split(/\./, $addr, 4);
splice(@o, 1, 2) if $o[1] == 0 and $o[2] == 0;
return join '.', @o;
}
return _compV6($addr);
}
# end of NetAddr::IP::short
1;
|