in reply to NetAddr::IP Automated Subnet Allocation

Bravo !     ikegami's code works (++). Here is my minor variation:
my $IP2 = NetAddr::IP->new($IP1->broadcast->numeric()+1 , 24); # Usin +g 24-bit mask...
What I'm curious about is why you pass Object REFEREENCES around, causing awkward syntax like
$$netaddr_ref->hostenum())

Why not pass the object itself (Which happens to be a reference already) ?

    Earth first! (We'll rob the other planets later)

Replies are listed 'Best First'.
Re^2: NetAddr::IP Automated Subnet Allocation
by amt (Monk) on Sep 03, 2004 at 13:08 UTC
    i was passing references because of a previous misconception mixed with laziness. haha. thanks for the suggestions you two, it has already made my otherwise miserable hungover day, just a little bit better. like a ray of sunshine cutting through my drunken stupor, but I digress.
    amt