Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 making s'mores by the fire in the courtyard of the Monastery: (10)
As of 2014-07-30 03:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (229 votes), past polls