note
jwest
Sorry - I should have specified that. As per your example, you can enter it as:<br>
<br>
192.168.1.0;255.255.255.0<br>
<br>
Or, since we're using Net::Netmask:<br>
<br>
192.168.1.0/24<br>
192.168.1.0:255.255.255.0<br>
192.168.1 - which assumes a /24 block<br>
192.168 - which assumes a /16 block<br>
192 - which assumes a /8 block<br>
192.168.1/24<br>
192.168/16<br>
etc.<br>
<br>
Net::Netmask is particularly smart about parsing these things, so it's a nice tool to leverage for this type of work.<br>
<br>
--[jwest]<br>
<br>
<pre>
-><- -><- -><- -><- -><-
All things are Perfect
To every last Flaw
And bound in accord
With Eris's Law
- HBT; The Book of Advice, 1:7
</pre>
132675
132808