Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: replacing the last portions of an octet

by ksublondie (Pilgrim)
on Sep 18, 2012 at 19:57 UTC ( #994346=note: print w/ replies, xml ) Need Help??


in reply to replacing the last portions of an octet

...You'll probably need to test that the last number in each octet is 0 <= x <= 255 after the arithmetic...


Comment on Re: replacing the last portions of an octet
Re^2: replacing the last portions of an octet
by diamondsandperls (Beadle) on Sep 18, 2012 at 20:00 UTC
    good point this will not be needed as none of the numbers ever are this however the first ip needs to decrease and the sample code increases both how do i decrease a wild guess was decip but that did not work

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://994346]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2014-12-20 11:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (95 votes), past polls