|
|
|
Clear questions and runnable code get the best and fastest answer |
|
| PerlMonks |
Re^3: ip range for config filesby ehdonhon (Curate) |
| on Nov 05, 2003 at 01:15 UTC ( [id://304641]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
The thing about 192.168.0.1 - 192.168.0.100 is that it is impossible to represent that exact range in one net block. You have to use several netblocks of varying sizes to do it. So no, Net::Netmask will not let you do it all in one block because its impossible. It does, however, give you the range2cidrlist method that will break that range into a series of valid netblocks for you.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||