in reply to Re^2: Display all IPs in given range
in thread Display all IPs in given range

forgot to log in appearantly.. if so welcome to the monastery Noosrep!

L*

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.

Replies are listed 'Best First'.
Re^4: Display all IPs in given range
by Noosrep (Novice) on Oct 17, 2016 at 13:42 UTC

    Thanks! I tried your code but it gives me Can't call method "broadcast" on an undefined value error. However, I will try tinkering some more with it.

      The problem is on the provious line, which is better written as :
      my $ip = NetAddr::IP::->new ('10.0.0.0/30'); ($ip and ref($ip)) or die "ERROR: Could not create IP object.";

              ...it is unhealthy to remain near things that are in the process of blowing up.     man page for WARP, by Larry Wall

        That did the trick!