more useful options | |
PerlMonks |
Re: Display all IPs in given rangeby Discipulus (Canon) |
on Oct 17, 2016 at 09:48 UTC ( [id://1174133]=note: print w/replies, xml ) | Need Help?? |
NetAddr::IP can be useful in this case: you can adapt to fill in your array of valid IPs in your subnet (you consider the broadcast one as valid?) see Managing your IP space with Perl
L* PS the module also has ->first() and ->last() methods that are what you are looking for. PPS fixed module link thanks to hippo
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.
In Section
Seekers of Perl Wisdom
|
|