On 10 Jun 2005 13:00:46 -0000, via RT Maxime Henrion
<[EMAIL PROTECTED]> 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, and you have to
> use the ip_add_num() method directly as in the loop below to get the
> code to work again :

FWIW I can't reproduce this with bleadperl.

Reply via email to