Help for this page

Select Code to Download


  1. or download this
    # for just DottedQuadToLong():
    use Net::IP;
    ...
    use Net::IP qw/:PROC/;
    print ip_bintoint(ip_iptobin("24.72.30.83",4));
    print ip_bintoip(ip_inttobin("407379539",4),4);
    
  2. or download this
    sub DottedQuadToLong {
        my $ip_str = shift;
    ...
        }
        return $ip;
    }