Skip Menu |

This queue is for tickets about the Number-Range CPAN distribution.

Report information
The Basics
Id: 98623
Status: open
Priority: 0/
Queue: Number-Range

People
Owner: Nobody in particular
Requestors: rdabane [...] gmail.com
Cc:
AdminCc:

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



Subject: Issue with using _largehashrange
Date: Thu, 4 Sep 2014 17:20:53 -0700
To: bug-Number-Range [...] rt.cpan.org
From: Rahul Dabane <rdabane [...] gmail.com>
Hi, I'm trying to use the package with 0.10 version. Looks like following piece of code has a bug with size operator: my $newrange = Range->new("1..5000"); $newrange->delrange("100..200"); my $size = $newrange->size; print "Size = $size\n"; This still prints 5000 instead of 5000-101+1 = 4900. Please let me know if I'm using it incorrectly or this is a bug? Thanks, -Rahul.
Looks like version 0.09 broke it. Tomasz On Czw 04 Wrz 2014, 20:21:03, rdabane@gmail.com wrote: Show quoted text
> Hi, > I'm trying to use the package with 0.10 version. > > Looks like following piece of code has a bug with size operator: > > my $newrange = Range->new("1..5000"); > $newrange->delrange("100..200"); > my $size = $newrange->size; > > print "Size = $size\n"; > > This still prints 5000 instead of 5000-101+1 = 4900. > > Please let me know if I'm using it incorrectly or this is a bug? > > Thanks, > -Rahul.