Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Increment of ip address

by monkey_boy (Priest)
on Jun 16, 2005 at 16:10 UTC ( #467339=note: print w/replies, xml ) Need Help??


in reply to Increment of ip address

Update:
As it has been mentioned , this does not work in many situations, please ignore my stupid ramblings .. the simple way ..
use strict; my $ip = '1.2.3.4'; my @ip = split(/\./,$ip); $ip[3]++; print join('.',@ip) , "\n";



This is not a Signature...

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2021-10-22 04:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (85 votes). Check out past polls.

    Notices?