On Fri, Jun 10, 2005 at 01:00:46PM -0000, Maxime Henrion wrote:

> I have recently updated Perl to the 5.8.7 version and have been seeing
> some rather weird problem with it.  Here's a snippet of code that uses
> the Net::IP module :
> 
> use strict;                                                                   
>   
> use warnings;                                                                 
>   
> 
> use Net::IP;                                                                  
>   
> 
> my $ips = new Net::IP ("10.0.0.1 - 10.0.0.254");
> 
> do {
>         print "IP: " . $ips->ip() . "\n";
> } while ($ips++);
> 
> This is the documented method for looping through all the IPs in a
> range, and it works as expected with Perl 5.8.6.  The '+' operator is
> actually overloaded by the Net::IP module and bound to the ip_add_num()
> method.
> 
> However, this breaks with Perl 5.8.7 for some reason

I can confirm this behavior on FreeBSD.

The culprit appears to be Math::BigInt, since if I donwgrade
Math::BigInt to 1.75 (as opposed to bundled 1.77), everything works
fine.

\Anton.
-- 
The moronity of the universe is a monotonically increasing function. --
Jarkko Hietaniemi

Reply via email to