Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Re: Re: IP troubles

by jwest (Friar)
on Dec 18, 2001 at 19:27 UTC ( #132837=note: print w/replies, xml ) Need Help??


in reply to Re: Re: IP troubles
in thread IP troubles

Sorry - I should have specified that. As per your example, you can enter it as:

192.168.1.0;255.255.255.0

Or, since we're using Net::Netmask:

192.168.1.0/24
192.168.1.0:255.255.255.0
192.168.1 - which assumes a /24 block
192.168 - which assumes a /16 block
192 - which assumes a /8 block
192.168.1/24
192.168/16
etc.

Net::Netmask is particularly smart about parsing these things, so it's a nice tool to leverage for this type of work.

--jwest

-><- -><- -><- -><- -><-
All things are Perfect
    To every last Flaw
    And bound in accord
         With Eris's Law
 - HBT; The Book of Advice, 1:7

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://132837]
help
Chatterbox?
[Tanktalus]: it's all the same process, and, IIRC, the same mechanized object.
[Tanktalus]: hmm, no, the mech object for posting isn't the same as reading, but it's the same as the logging in one.
[Tanktalus]: I really need to rewrite this whole thing anyway. :)

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2018-07-15 21:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (326 votes). Check out past polls.

    Notices?