Skip Menu |

This queue is for tickets about the NetAddr-IP CPAN distribution.

Report information
The Basics
Id: 84996
Status: resolved
Worked: 10 min
Priority: 0/
Queue: NetAddr-IP

People
Owner: Nobody in particular
Requestors: tobez [...] tobez.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Documentation bug for nth()
Date: Thu, 2 May 2013 13:38:23 +0200
To: bug-NetAddr-IP [...] rt.cpan.org
From: Anton Berezin <tobez [...] tobez.org>
Hi, In the description of the new behavior of nth(), there is a documentation bug for /31. Currently, the docs stay that: NetAddr::IP->new('10/31')->nth(0) == 10.0.0.0/32 NetAddr::IP->new('10/31')->nth(1) == 10.0.0.1/32 while the (expected) reality matches NetAddr::IP->new('10/31')->nth(0) == 10.0.0.0/31 NetAddr::IP->new('10/31')->nth(1) == 10.0.0.1/31 Thanks, \Anton. -- Our society can survive even a large amount of irrational regulation. -- John McCarthy
Will be fixed in the 4.070 release along with whatever the next bug happens to be. Thanks for bringing it to my attention. Michael On Thu May 02 07:38:42 2013, tobez@tobez.org wrote: Show quoted text
> Hi, > > In the description of the new behavior of nth(), there is a documentation > bug for /31. Currently, the docs stay that: > > NetAddr::IP->new('10/31')->nth(0) == 10.0.0.0/32 > NetAddr::IP->new('10/31')->nth(1) == 10.0.0.1/32 > > while the (expected) reality matches > > NetAddr::IP->new('10/31')->nth(0) == 10.0.0.0/31 > NetAddr::IP->new('10/31')->nth(1) == 10.0.0.1/31 > > Thanks, > \Anton.