Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Need to calculate IP address

by ikegami (Patriarch)
on Dec 29, 2017 at 23:32 UTC ( [id://1206446]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $ip_num = unpack 'N', pack 'C4', split /\./, $ip_dotted;
    $ip_num = ( ( $ip_num - 1 ) ^ 1 ) + 1;
    $ip_dotted = join '.', unpack 'C4', pack 'N', $ip_num;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2024-04-23 06:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found