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.