HEX
Server: Apache
System: Linux server-634962.emtiyz.com 5.14.0-611.11.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Dec 3 09:47:37 EST 2025 x86_64
User: codo66ho (1003)
PHP: 8.2.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //home/.cpan/build/NetAddr-IP-4.079-0/Lite/t/bug62521.t
BEGIN { $| = 1; print "1..3\n"; }
END {print "not ok 1\n" unless $loaded;}

$loaded = 1;
print "ok 1\n";

#use diagnostics;
use NetAddr::IP::Lite;

$| = 1;

my $test = 2;

sub ok() {
  print 'ok ',$test++,"\n";
}

$exp = '0:0:0:0:0:0:7F00:0/104';
my $ip = new6 NetAddr::IP::Lite('127.0.0.0/8');
print "exp $exp\ngot ", $ip, "\nnot "
	unless $ip eq $exp;
&ok;

$ip = new6 NetAddr::IP::Lite('127/8');
print "exp $exp\ngot ", $ip, "\nnot "
        unless $ip eq $exp;
&ok;