Think about Loose Coupling | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
try it without 192.168.0.1/8, it's invalid and a /8 is huge (2**24). which is your second problem, in your for loop your forcing all of the individual IPs to be created at once which takes tons of memory and time. you want to read the documentation and use the iterator. i'm too lazy to look it up at the moment, but it'll be something like:
this will only create one IP at a time and be much much faster and use much less memory. 192.168.0.1/8 is invalid. 192.0.0.0/8 would be valid. unless your trying to specify a host and a network at the same time (as on a network interface). all in all i wouldn't worry about using 192.168.0.1-12 format. i've never seen a need in many years of keeping lists of IPs. most people who have to do whatever with a lot of IPs that can't be constrained into CIDR notation will already have a list with each IP for use with other programs that take IP addresses. In reply to Re: ip range for config files
by zengargoyle
|
|