-----BEGIN PGP SIGNED MESSAGE-----

Moin,

On Friday 24 June 2005 15:21, Anton Berezin wrote:
> 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.

It works for me with Math::BigInt v1.77 on Perl v5.8.6. It also works with 
v.5.8.7 (with and without FastCalc 0.10).

My hunch is that it has something to do with loading of 
Math::BigInt::Fastcalc, but I might be wrong.

Can you please run the script as follows:

use strict;
use warnings;
use Math::BigInt lib => 'Calc';

use Net::IP;

my $ips = new Net::IP ("10.0.0.100 - 10.0.0.254");

print Math::BigInt->config()->{lib}, " v",
        Math::BigInt->config()->{lib_version}, "\n";

  do {
        print "IP: " . $ips->ip() . "\n";
        } while ($ips++);

Best wishes,

Tels

- -- 
 Signed on Fri Jun 24 16:05:54 2005 with key 0x93B84C15.
 Visit my photo gallery at http://bloodgate.com/photos/
 PGP key on http://bloodgate.com/tels.asc or per email.

 "When it's done in 2001." - 2000 Christmas card about Duke Nukem Forever
 (http://tinyurl.com/6m8nh)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iQEVAwUBQrwbZHcLPEOTuEwVAQHuegf/SLrW8NbST2B8ynVIg5ghHxvxEN75BwPi
POZ8vkk4TfwfDNuUbUrTg2XAbocivUc+xxyiXeJohbXTJVOZD5yYsI6peIB9R8Gb
nojV7nagEbuHPqSo/Qlc4jWVEpXPFsaaxP47lqXWQlLEtDWFA2JMmZUWoxTCyM1n
ksklqraBA1CwLNISEUXUx8wBdmCm/LfwmoDIAzRc9Q84otm5d/QxVEDVN6KZGRyV
cVSgDkP/EerYtzxaMd9mzNh9J91kcdt/QkJodgSUAArsNNWvw0lzE1xZKXWWTotE
L8RIi7BpW+sNMVk0aVXmrHzU2z3U2j3fMEePW48tZy8a1wIBDUTVGA==
=+uPs
-----END PGP SIGNATURE-----

Reply via email to